浏览代码

Update Nullkiller.h

Fixed issues caused by running buildPlan with wrong default-priority-tier.
Xilmi 1 年之前
父节点
当前提交
ea535b211a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AI/Nullkiller/Engine/Nullkiller.h

+ 1 - 1
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;