From 5e6fefdc509dcbad510032f1ea41e3e95336d33f Mon Sep 17 00:00:00 2001 From: Xilmi Date: Wed, 2 Oct 2024 23:40:51 +0200 Subject: [PATCH] Reverted fix for not trying to moving foreign heroes While it fixed the bug it was supposed to fix it caused another severe bug: AI wasn't generating a thread-map anymore. Original bug needs to find another fix. --- AI/Nullkiller/Pathfinding/AINodeStorage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AI/Nullkiller/Pathfinding/AINodeStorage.cpp b/AI/Nullkiller/Pathfinding/AINodeStorage.cpp index b087d0124..45824c9ca 100644 --- a/AI/Nullkiller/Pathfinding/AINodeStorage.cpp +++ b/AI/Nullkiller/Pathfinding/AINodeStorage.cpp @@ -1413,8 +1413,7 @@ void AINodeStorage::calculateChainInfo(std::vector & paths, const int3 & || node.layer != layer || node.action == EPathNodeAction::UNKNOWN || !node.actor - || !node.actor->hero - || node.actor->hero->getOwner() != ai->playerID) + || !node.actor->hero) { continue; }