mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
NetworkSystem: optimize server list construction
Use emplace_back to construct in place, and transfer ownership of allocated memory.
This commit is contained in:
parent
bb566cd1fd
commit
fde639e167
@ -96,7 +96,7 @@ bool CPylon::GetServerList(vector<NetGameServer_t>& outServerList, string& outMe
|
||||
continue;
|
||||
}
|
||||
|
||||
outServerList.push_back(gameServer);
|
||||
outServerList.emplace_back(std::move(gameServer));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user