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:
parent
cc91be3518
commit
96eab03b16
@ -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++)
|
||||
{
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user