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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user