NetworkSystem: optimize server list construction

Use emplace_back to construct in place, and transfer ownership of allocated memory.
This commit is contained in:
Kawe Mazidjatari 2025-02-07 21:42:44 +01:00
parent bb566cd1fd
commit fde639e167

View File

@ -96,7 +96,7 @@ bool CPylon::GetServerList(vector<NetGameServer_t>& outServerList, string& outMe
continue; continue;
} }
outServerList.push_back(gameServer); outServerList.emplace_back(std::move(gameServer));
} }
return true; return true;