From ea535b211ad3c6b35484849659693ecec4e36a47 Mon Sep 17 00:00:00 2001 From: Xilmi Date: Fri, 27 Sep 2024 23:03:09 +0200 Subject: [PATCH] Update Nullkiller.h Fixed issues caused by running buildPlan with wrong default-priority-tier. --- AI/Nullkiller/Engine/Nullkiller.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/Nullkiller/Engine/Nullkiller.h b/AI/Nullkiller/Engine/Nullkiller.h index 5166421fb..6a442dc80 100644 --- a/AI/Nullkiller/Engine/Nullkiller.h +++ b/AI/Nullkiller/Engine/Nullkiller.h @@ -127,7 +127,7 @@ private: void updateAiState(int pass, bool fast = false); void decompose(Goals::TGoalVec & result, Goals::TSubgoal behavior, int decompositionMaxDepth) const; Goals::TTask choseBestTask(Goals::TGoalVec & tasks) const; - Goals::TTaskVec buildPlan(Goals::TGoalVec & tasks, int priorityTier = 3) const; + Goals::TTaskVec buildPlan(Goals::TGoalVec & tasks, int priorityTier = PriorityEvaluator::PriorityTier::HUNTER_GATHER) const; bool executeTask(Goals::TTask task); bool areAffectedObjectsPresent(Goals::TTask task) const; HeroRole getTaskRole(Goals::TTask task) const;