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:
parent
37f56e075a
commit
e38b822303
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user