Browse Source

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.
Xilmi 1 year ago
parent
commit
5e6fefdc50
1 changed files with 1 additions and 2 deletions
  1. 1 2
      AI/Nullkiller/Pathfinding/AINodeStorage.cpp

+ 1 - 2
AI/Nullkiller/Pathfinding/AINodeStorage.cpp

@@ -1413,8 +1413,7 @@ void AINodeStorage::calculateChainInfo(std::vector<AIPath> & 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;
 		}