mirror of https://github.com/OpenRCT2/OpenRCT2.git
Verify pointer against nullptr before using it
Reported by PVS-Studio (Warning: V1004). Fix 6/7. Issue: 12523
This commit is contained in:
parent
579e008590
commit
c6b7893d77
|
@ -1852,9 +1852,8 @@ void NetworkBase::ProcessPlayerList()
|
|||
{
|
||||
_serverConnection->Player = player;
|
||||
}
|
||||
newPlayers.push_back(player->Id);
|
||||
}
|
||||
|
||||
newPlayers.push_back(player->Id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue