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

Fix crash on accessing campaign screen

This commit is contained in:
Ivan Savenko 2024-05-06 12:20:37 +00:00
parent 48a9696e7f
commit cd79953693

View File

@ -296,23 +296,23 @@ void InfoCard::setChat(bool activateChat)
iconsLossCondition->disable();
labelLossConditionText->disable();
labelGroupPlayers->enable();
labelMapDiff->disable();
labelPlayerDifficulty->disable();
labelRating->disable();
labelDifficulty->disable();
labelDifficultyPercent->disable();
flagbox->disable();
iconDifficulty->disable();
mapDescription->disable();
chat->enable();
pvpBox->enable();
playerListBg->enable();
}
if (CSH->inLobbyRoom())
{
buttonInvitePlayers->enable();
buttonOpenGlobalLobby->enable();
}
labelMapDiff->disable();
labelPlayerDifficulty->disable();
labelRating->disable();
labelDifficulty->disable();
labelDifficultyPercent->disable();
flagbox->disable();
iconDifficulty->disable();
mapDescription->disable();
chat->enable();
pvpBox->enable();
playerListBg->enable();
}
else
{
@ -337,14 +337,14 @@ void InfoCard::setChat(bool activateChat)
labelVictoryConditionText->enable();
labelLossConditionText->enable();
labelGroupPlayers->disable();
labelMapDiff->enable();
labelPlayerDifficulty->enable();
labelRating->enable();
labelDifficulty->enable();
labelDifficultyPercent->enable();
flagbox->enable();
iconDifficulty->enable();
}
labelMapDiff->enable();
labelPlayerDifficulty->enable();
labelRating->enable();
labelDifficulty->enable();
labelDifficultyPercent->enable();
flagbox->enable();
iconDifficulty->enable();
}
showChat = activateChat;