1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

NKAI: remove static ai field

This commit is contained in:
Andrii Danylchenko
2024-03-31 18:39:00 +03:00
parent d6f1a5c2b3
commit 728f673763
62 changed files with 368 additions and 376 deletions
+1 -1
View File
@@ -1389,7 +1389,7 @@ void AINodeStorage::fillChainInfo(const AIPathNode * node, AIPath & path, int pa
{
auto targetNode =node->theNodeBefore ? getAINode(node->theNodeBefore) : node;
pathNode.actionIsBlocked = !pathNode.specialAction->canAct(targetNode);
pathNode.actionIsBlocked = !pathNode.specialAction->canAct(ai, targetNode);
}
parentIndex = path.nodes.size();