1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Verify pointer against nullptr before using it

Reported by PVS-Studio (Warning: V1004).

Fix 6/7.

Issue: 12523
This commit is contained in:
Vinicius Sa
2020-10-02 22:27:46 -03:00
parent 579e008590
commit c6b7893d77

View File

@@ -1852,9 +1852,8 @@ void NetworkBase::ProcessPlayerList()
{
_serverConnection->Player = player;
}
newPlayers.push_back(player->Id);
}
newPlayers.push_back(player->Id);
}
else
{