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.
@@ -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;
}