1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

New hero-not acting

Fixed an issue that caused newly hired heroes to do nothing on the turn they were hired under certain circumstances.
This commit is contained in:
Xilmi
2024-09-01 12:33:54 +02:00
parent df5d143822
commit be43c4d5f0
+1
View File
@@ -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());