1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

Invalidate pathfinder cache on dismissing a hero

This commit is contained in:
Ivan Savenko 2025-02-26 14:46:19 +00:00
parent 1e020a3b56
commit f4f89d1536

View File

@ -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)