Просмотр исходного кода

New hero-not acting

Fixed an issue that caused newly hired heroes to do nothing on the turn they were hired under certain circumstances.
Xilmi 1 год назад
Родитель
Сommit
be43c4d5f0
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      AI/Nullkiller/Goals/RecruitHero.cpp

+ 1 - 0
AI/Nullkiller/Goals/RecruitHero.cpp

@@ -69,6 +69,7 @@ void RecruitHero::accept(AIGateway * ai)
 
 	cb->recruitHero(t, heroToHire);
 	ai->nullkiller->heroManager->update();
+	ai->nullkiller->objectClusterizer->reset();
 
 	if(t->visitingHero)
 		ai->moveHeroToTile(t->visitablePos(), t->visitingHero.get());