1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fix crash on dereferencing nullptr

This commit is contained in:
Ivan Savenko 2023-04-24 17:17:12 +03:00
parent d3c1c92a03
commit 3ac713d6a8

View File

@ -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);
}