From f4f89d1536c7e1b83d476e8e93e90b95dcaabb8a Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Wed, 26 Feb 2025 14:46:19 +0000 Subject: [PATCH] Invalidate pathfinder cache on dismissing a hero --- AI/Nullkiller/AIGateway.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/AI/Nullkiller/AIGateway.cpp b/AI/Nullkiller/AIGateway.cpp index 2e8c398c5..55487417e 100644 --- a/AI/Nullkiller/AIGateway.cpp +++ b/AI/Nullkiller/AIGateway.cpp @@ -1608,6 +1608,7 @@ void AIGateway::requestActionASAP(std::function whatToDo) void AIGateway::lostHero(HeroPtr h) { logAi->debug("I lost my hero %s. It's best to forget and move on.", h.name()); + nullkiller->invalidatePathfinderData(); } void AIGateway::answerQuery(QueryID queryID, int selection)