Ver Fonte

Update Nullkiller.h

Fixed issues caused by running buildPlan with wrong default-priority-tier.
Xilmi há 1 ano atrás
pai
commit
ea535b211a
1 ficheiros alterados com 1 adições e 1 exclusões
  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;