diff --git a/AI/Nullkiller/Analyzers/DangerHitMapAnalyzer.cpp b/AI/Nullkiller/Analyzers/DangerHitMapAnalyzer.cpp index 5b2638341..efc4bde8e 100644 --- a/AI/Nullkiller/Analyzers/DangerHitMapAnalyzer.cpp +++ b/AI/Nullkiller/Analyzers/DangerHitMapAnalyzer.cpp @@ -156,11 +156,10 @@ void DangerHitMapAnalyzer::calculateTileOwners() CRandomGenerator rng; auto visitablePos = town->visitablePos(); - townHero->pos = visitablePos; townHero->setOwner(ai->playerID); // lets avoid having multiple colors townHero->initHero(rng, static_cast(0)); - townHero->initObj(rng); townHero->pos = townHero->convertFromVisitablePos(visitablePos); + townHero->initObj(rng); heroTownMap[townHero] = town; townHeroes[townHero] = HeroRole::MAIN;