mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-05 13:04:54 +02:00
Fix crash on dereferencing nullptr
This commit is contained in:
parent
d3c1c92a03
commit
3ac713d6a8
@ -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);
|
tabRand->setMapGenOptions(CSH->si->mapGenOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user