1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Merge pull request #3473 from IvanSavenko/const_lib

[1.5] Remove non-const global variables from library
This commit is contained in:
Ivan Savenko
2024-01-20 19:22:46 +02:00
committed by GitHub
190 changed files with 1111 additions and 1099 deletions

View File

@ -203,7 +203,7 @@ void ClientCommandManager::handleConvertTextCommand()
try
{
// load and drop loaded map - we only need loader to run over all maps
mapService.loadMap(mapName);
mapService.loadMap(mapName, nullptr);
}
catch(std::exception & e)
{
@ -216,7 +216,7 @@ void ClientCommandManager::handleConvertTextCommand()
{
auto state = CampaignHandler::getCampaign(campaignName.getName());
for (auto const & part : state->allScenarios())
state->getMap(part);
state->getMap(part, nullptr);
}
VLC->generaltexth->dumpAllTexts();