1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Reorganization of campaigns code

This commit is contained in:
Ivan Savenko
2023-06-25 22:28:24 +03:00
parent d1e5a347ff
commit 8420a90aa4
38 changed files with 659 additions and 611 deletions

View File

@@ -42,7 +42,7 @@
#include "../../lib/CHeroHandler.h"
#include "../../lib/CCreatureHandler.h"
#include "../../lib/mapping/CCampaignHandler.h"
#include "../../lib/campaign/CampaignHandler.h"
#include "../../lib/mapping/CMapService.h"
#include "../../lib/mapObjects/CGHeroInstance.h"
@@ -96,8 +96,8 @@ CCampaignScreen::CCampaignButton::CCampaignButton(const JsonNode & config)
status = config["open"].Bool() ? CCampaignScreen::ENABLED : CCampaignScreen::DISABLED;
CampaignHeader header = CampaignHandler::getHeader(campFile);
hoverText = header.name;
auto header = CampaignHandler::getHeader(campFile);
hoverText = header->name;
if(status != CCampaignScreen::DISABLED)
{