1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00

size() returns a size_t.

This commit is contained in:
Nemirtingas 2019-08-01 19:08:09 +02:00
parent e674cd96e5
commit a1037e3bf2

View file

@ -1250,7 +1250,7 @@ void Callback(Common_Message *msg)
if (msg->lobby().owner() != settings->get_local_steam_id().ConvertToUint64() && msg->lobby().appid() == settings->get_local_game_id().AppID()) { if (msg->lobby().owner() != settings->get_local_steam_id().ConvertToUint64() && msg->lobby().appid() == settings->get_local_game_id().AppID()) {
Lobby *lobby = get_lobby((uint64)msg->lobby().room_id()); Lobby *lobby = get_lobby((uint64)msg->lobby().room_id());
if (!lobby) { if (!lobby) {
unsigned int old_size = lobbies.size(); size_t old_size = lobbies.size();
lobbies.resize(old_size + 1); lobbies.resize(old_size + 1);
lobbies[old_size].set_room_id(msg->lobby().room_id()); lobbies[old_size].set_room_id(msg->lobby().room_id());
lobby = &(lobbies[old_size]); lobby = &(lobbies[old_size]);