From dea0ed56fcfc4fa0bd0ebaa58dfd047c5af856d2 Mon Sep 17 00:00:00 2001 From: hppeng Date: Wed, 20 Jul 2022 02:17:54 -0700 Subject: [PATCH] Fix atree validator sometimes giving the wrong reason accidentally used reasons from previous iteration --- js/atree.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/atree.js b/js/atree.js index 0a6151c..1ab5e4c 100644 --- a/js/atree.js +++ b/js/atree.js @@ -416,6 +416,7 @@ const atree_validate = new (class extends ComputeNode { reachable.add(ability.id); } if (atree_to_add.length == _add.length) { + atree_to_add = _add; break; } atree_to_add = _add;