diff --git a/AI/Nullkiller/Engine/Nullkiller.cpp b/AI/Nullkiller/Engine/Nullkiller.cpp index 77cac935a..46d7825ab 100644 --- a/AI/Nullkiller/Engine/Nullkiller.cpp +++ b/AI/Nullkiller/Engine/Nullkiller.cpp @@ -410,8 +410,10 @@ void Nullkiller::makeTurn() decompose(bestTasks, sptr(ExplorationBehavior()), MAX_DEPTH); TTaskVec selectedTasks; + int prioOfTask = 0; for (int prio = PriorityEvaluator::PriorityTier::INSTAKILL; prio <= PriorityEvaluator::PriorityTier::DEFEND; ++prio) { + prioOfTask = prio; selectedTasks = buildPlan(bestTasks, prio); if (!selectedTasks.empty() || settings->isUseFuzzy()) break;