mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Use inheritance instead of composition for campaign header
This commit is contained in:
@@ -97,7 +97,7 @@ CCampaignScreen::CCampaignButton::CCampaignButton(const JsonNode & config)
|
||||
status = config["open"].Bool() ? CCampaignScreen::ENABLED : CCampaignScreen::DISABLED;
|
||||
|
||||
auto header = CampaignHandler::getHeader(campFile);
|
||||
hoverText = header->name;
|
||||
hoverText = header->getName();
|
||||
|
||||
if(status != CCampaignScreen::DISABLED)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user