Преглед на файлове

Invalidate pathfinder cache on dismissing a hero

Ivan Savenko преди 8 месеца
родител
ревизия
f4f89d1536
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      AI/Nullkiller/AIGateway.cpp

+ 1 - 0
AI/Nullkiller/AIGateway.cpp

@@ -1608,6 +1608,7 @@ void AIGateway::requestActionASAP(std::function<void()> 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)