mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Refactoring of campaign handler: rename types and use strong typing
This commit is contained in:
@@ -209,9 +209,9 @@ void ClientCommandManager::handleConvertTextCommand()
|
||||
logGlobal->info("Loading campaigns for export");
|
||||
for (auto const & campaignName : campaignList)
|
||||
{
|
||||
CCampaignState state(CCampaignHandler::getCampaign(campaignName.getName()));
|
||||
for (auto const & part : state.camp->mapPieces)
|
||||
delete state.getMap(part.first);
|
||||
auto state = CampaignHandler::getCampaign(campaignName.getName());
|
||||
for (auto const & part : state->mapPieces)
|
||||
state->getMap(part.first);
|
||||
}
|
||||
|
||||
VLC->generaltexth->dumpAllTexts();
|
||||
|
||||
Reference in New Issue
Block a user