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
No known key found for this signature in database
GPG Key ID: 9A1AEFB29F082C26
1 changed files with 1 additions and 2 deletions

View File

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