浏览代码

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 年之前
父节点
当前提交
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());