1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix UI updates

This commit is contained in:
Ivan Savenko 2023-06-27 14:09:04 +03:00
parent cc91be3518
commit 96eab03b16
2 changed files with 2 additions and 1 deletions

View File

@ -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++)
{

View File

@ -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];