mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Use inheritance instead of composition for campaign header
This commit is contained in:
@@ -62,8 +62,8 @@ PlayerSettings * StartInfo::getPlayersSettings(const ui8 connectedPlayerId)
|
||||
|
||||
std::string StartInfo::getCampaignName() const
|
||||
{
|
||||
if(campState->getHeader().name.empty())
|
||||
return campState->getHeader().name;
|
||||
if(campState->getName().empty())
|
||||
return campState->getName();
|
||||
else
|
||||
return VLC->generaltexth->allTexts[508];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user