Fix atree validator sometimes giving the wrong reason

accidentally used reasons from previous iteration
This commit is contained in:
hppeng 2022-07-20 02:17:54 -07:00
parent ab371f5757
commit dea0ed56fc

View file

@ -416,6 +416,7 @@ const atree_validate = new (class extends ComputeNode {
reachable.add(ability.id); reachable.add(ability.id);
} }
if (atree_to_add.length == _add.length) { if (atree_to_add.length == _add.length) {
atree_to_add = _add;
break; break;
} }
atree_to_add = _add; atree_to_add = _add;