mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix crash on dereferencing nullptr
This commit is contained in:
@@ -197,7 +197,7 @@ void CLobbyScreen::updateAfterStateChange()
|
||||
}
|
||||
}
|
||||
|
||||
if(curTab == tabRand && CSH->si->mapGenOptions)
|
||||
if(curTab && curTab == tabRand && CSH->si->mapGenOptions)
|
||||
tabRand->setMapGenOptions(CSH->si->mapGenOptions);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user