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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user