1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Restrict reindexing to random maps

This commit is contained in:
Tomasz Zieliński 2024-04-03 20:05:35 +02:00
parent 2a213f2276
commit 12da0196a0
2 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,6 @@ void CMapService::saveMap(const std::unique_ptr<CMap> & map, boost::filesystem::
tmp.flush();
tmp.close();
}
map->reindexObjects();
}
ModCompatibilityInfo CMapService::verifyMapHeaderMods(const CMapHeader & map)

View File

@ -419,6 +419,7 @@ void CMapGenerator::fillZones()
auto grailZone = *RandomGeneratorUtil::nextItem(treasureZones, rand);
map->getMap(this).grailPos = *RandomGeneratorUtil::nextItem(grailZone->freePaths()->getTiles(), rand);
map->getMap(this).reindexObjects();
logGlobal->info("Zones filled successfully");