From 64c3fbd51928b81bcc412ced989dc8906e389236 Mon Sep 17 00:00:00 2001 From: Xilmi Date: Sun, 1 Sep 2024 23:58:47 +0200 Subject: [PATCH] Update ExecuteHeroChain.cpp Now resetting the ObjectClusterizer as killing something might change the situation. --- AI/Nullkiller/Goals/ExecuteHeroChain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/AI/Nullkiller/Goals/ExecuteHeroChain.cpp b/AI/Nullkiller/Goals/ExecuteHeroChain.cpp index 566427f4d..1a39ff776 100644 --- a/AI/Nullkiller/Goals/ExecuteHeroChain.cpp +++ b/AI/Nullkiller/Goals/ExecuteHeroChain.cpp @@ -86,6 +86,7 @@ void ExecuteHeroChain::accept(AIGateway * ai) ai->nullkiller->setActive(chainPath.targetHero, tile); ai->nullkiller->setTargetObject(objid); + ai->nullkiller->objectClusterizer->reset(); auto targetObject = ai->myCb->getObj(static_cast(objid), false);