From 96eab03b166688cdce205425f4bc8312c3b8f07c Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 27 Jun 2023 14:09:04 +0300 Subject: [PATCH] Fix UI updates --- client/lobby/CBonusSelection.cpp | 1 + lib/StartInfo.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/lobby/CBonusSelection.cpp b/client/lobby/CBonusSelection.cpp index a37987c7c..5834bd7e4 100644 --- a/client/lobby/CBonusSelection.cpp +++ b/client/lobby/CBonusSelection.cpp @@ -351,6 +351,7 @@ void CBonusSelection::updateAfterStateChange() if(!CSH->mi) return; iconsMapSizes->setFrame(CSH->mi->getMapSizeIconId()); + mapName->setText(CSH->mi->getName()); mapDescription->setText(CSH->mi->getDescription()); for(size_t i = 0; i < difficultyIcons.size(); i++) { diff --git a/lib/StartInfo.cpp b/lib/StartInfo.cpp index 134beaef2..5d8f8220f 100644 --- a/lib/StartInfo.cpp +++ b/lib/StartInfo.cpp @@ -62,7 +62,7 @@ PlayerSettings * StartInfo::getPlayersSettings(const ui8 connectedPlayerId) std::string StartInfo::getCampaignName() const { - if(campState->getName().empty()) + if(!campState->getName().empty()) return campState->getName(); else return VLC->generaltexth->allTexts[508];