1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-18 03:21:27 +02:00

Update Nullkiller.cpp

Readded prioOfTask because it's needed in trace-messages.
This commit is contained in:
Xilmi 2024-09-05 23:41:05 +02:00
parent 5488a0a29c
commit db2416cb6b

View File

@ -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;