From 8c64dc8d152f2b6248e17e8d3d269aa4237c2f29 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Tue, 24 Dec 2019 17:49:09 -0500 Subject: fixed block aggregator to stop infinite loop --- tools/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/search.js b/tools/search.js index 0eebe3b..97341b3 100644 --- a/tools/search.js +++ b/tools/search.js @@ -54,7 +54,7 @@ function Search(searchBlock){ // searchBlock should be a Space object. let curind = chkind + sgn; while (sort[curind] && sort[chkind][ind] == sort[curind][ind]){ if (! exclude.has(sort[curind])){ - adjacent.add(...this.block(sort[curind], [curind, bs(sort, sort[curind], getComp(1-ind))], adjacent)); + adjacent.add(...this.block(sort[curind], [curind, bs(sort, sort[curind], getComp(1-ind))], exclude)); } curind += sgn; } -- cgit