1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00

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.
This commit is contained in:
Xilmi 2024-10-02 23:40:51 +02:00
parent 0143a52755
commit 5e6fefdc50

View File

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