1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix crash in scenario information window if campaign has no difficulty settings

This commit is contained in:
Evgeniy Meshcheryakov 2022-07-27 12:30:54 +03:00 committed by Andrii Danylchenko
parent 37f56e075a
commit e38b822303

View File

@ -360,8 +360,10 @@ void CBonusSelection::updateAfterStateChange()
buttonStart->disable();
buttonRestart->enable();
buttonBack->block(false);
buttonDifficultyLeft->disable();
buttonDifficultyRight->disable();
if(buttonDifficultyLeft)
buttonDifficultyLeft->disable();
if(buttonDifficultyRight)
buttonDifficultyRight->disable();
}
if(CSH->campaignBonus == -1)
{