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:
@@ -1852,9 +1852,8 @@ void NetworkBase::ProcessPlayerList()
|
||||
{
|
||||
_serverConnection->Player = player;
|
||||
}
|
||||
newPlayers.push_back(player->Id);
|
||||
}
|
||||
|
||||
newPlayers.push_back(player->Id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user