1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

code review (second batch)

This commit is contained in:
Laserlicht
2025-04-10 21:41:22 +02:00
parent 5b74f7f19e
commit 562b3f777d
4 changed files with 27 additions and 13 deletions

View File

@@ -432,7 +432,7 @@ std::unique_ptr<CMap> CampaignState::getMap(CampaignScenarioID scenarioId, IGame
boost::to_lower(scenarioName);
scenarioName += ':' + std::to_string(scenarioId.getNum());
if(!mapPieces.count(scenarioId) || !mapPieces.find(scenarioId)->second.size())
if(!mapPieces.count(scenarioId))
return nullptr;
const auto & mapContent = mapPieces.find(scenarioId)->second;