Selaa lähdekoodia

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 vuosi sitten
vanhempi
sitoutus
be43c4d5f0
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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());