diff --git a/AI/Nullkiller2/Goals/ExecuteHeroChain.cpp b/AI/Nullkiller2/Goals/ExecuteHeroChain.cpp index 470c9fb64..ac40dd0f1 100644 --- a/AI/Nullkiller2/Goals/ExecuteHeroChain.cpp +++ b/AI/Nullkiller2/Goals/ExecuteHeroChain.cpp @@ -245,7 +245,7 @@ void ExecuteHeroChain::accept(AIGateway * aiGw) CGPath path; bool isOk = aiGw->nullkiller->getPathsInfo(hero)->getPath(path, node->coord); - if(isOk && path.nodes.back().turns > 0) + if(isOk && path.nodes.front().turns > 0) { logAi->warn("Hero %s has %d mp which is not enough to continue his way towards %s.", hero->getNameTranslated(), hero->movementPointsRemaining(), node->coord.toString());