1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Fix crash when generating random map with random number of players

This commit is contained in:
godric3
2018-10-27 18:18:08 +02:00
parent 0f1e853b4a
commit 7ded9dbda8
2 changed files with 12 additions and 4 deletions

View File

@@ -321,7 +321,7 @@ void CClient::initMapHandler()
void CClient::initPlayerInterfaces()
{
for(auto & elem : CSH->si->playerInfos)
for(auto & elem : gs->scenarioOps->playerInfos)
{
PlayerColor color = elem.first;
if(!vstd::contains(CSH->getAllClientPlayers(CSH->c->connectionID), color))