1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00

Update ExecuteHeroChain.cpp

Now resetting the ObjectClusterizer as killing something might change the situation.
This commit is contained in:
Xilmi 2024-09-01 23:58:47 +02:00
parent 7c6f96344a
commit 64c3fbd519

View File

@ -86,6 +86,7 @@ void ExecuteHeroChain::accept(AIGateway * ai)
ai->nullkiller->setActive(chainPath.targetHero, tile); ai->nullkiller->setActive(chainPath.targetHero, tile);
ai->nullkiller->setTargetObject(objid); ai->nullkiller->setTargetObject(objid);
ai->nullkiller->objectClusterizer->reset();
auto targetObject = ai->myCb->getObj(static_cast<ObjectInstanceID>(objid), false); auto targetObject = ai->myCb->getObj(static_cast<ObjectInstanceID>(objid), false);