mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Restrict reindexing to random maps
This commit is contained in:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user