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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user