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

CMap towns and heroes on map fields are now private

This commit is contained in:
Ivan Savenko
2025-03-13 21:49:57 +00:00
parent 84cf7b052d
commit 1f502c0548
17 changed files with 283 additions and 237 deletions

View File

@@ -1134,11 +1134,7 @@ void CMapLoaderJson::readObjects()
for(auto & ptr : loaders)
ptr->configure();
std::sort(map->heroesOnMap.begin(), map->heroesOnMap.end(), [](const std::shared_ptr<CGHeroInstance> & a, const std::shared_ptr<CGHeroInstance> & b)
{
return a->getObjTypeIndex() < b->getObjTypeIndex();
});
map->postInitialize();
std::set<HeroTypeID> debugHeroesOnMap;
for (auto const & object : map->objects)