Fix HTN/NPC better plan selection (#30017)

* recording commit

* Remove debugging/recording content
This commit is contained in:
osjarw
2024-07-14 13:28:46 +03:00
committed by GitHub
parent f90538cca7
commit 7d9653fff7

View File

@@ -160,9 +160,9 @@ public sealed class HTNPlanJob : Job<HTNPlan>
{
var compound = _protoManager.Index<HTNCompoundPrototype>(compoundId.Task);
for (var i = mtrIndex; i < compound.Branches.Count; i++)
for (; mtrIndex < compound.Branches.Count; mtrIndex++)
{
var branch = compound.Branches[i];
var branch = compound.Branches[mtrIndex];
var isValid = true;
foreach (var con in branch.Preconditions)