mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Access to heroes storage in CMap is now done via public methods
This commit is contained in:
@@ -555,11 +555,11 @@ void CGameHandler::init(StartInfo *si, Load::ProgressAccumulator & progressTrack
|
||||
for (auto & elem : gs->players)
|
||||
turnOrder->addPlayer(elem.first);
|
||||
|
||||
for (auto & elem : gs->getMap().allHeroes)
|
||||
{
|
||||
if(elem)
|
||||
heroPool->getHeroSkillsRandomGenerator(elem->getHeroTypeID()); // init RMG seed
|
||||
}
|
||||
// for (auto & elem : gs->getMap().allHeroes)
|
||||
// {
|
||||
// if(elem)
|
||||
// heroPool->getHeroSkillsRandomGenerator(elem->getHeroTypeID()); // init RMG seed
|
||||
// }
|
||||
|
||||
reinitScripting();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user