aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-24 17:49:09 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:52:44 -0500
commit8c64dc8d152f2b6248e17e8d3d269aa4237c2f29 (patch)
tree757521a183703374e7eb345ce40fdb3b5a8c76c3 /tools
parent0de6b79203844870e56b8d3e4ae56798a9e43dc8 (diff)
fixed block aggregator to stop infinite loop
Diffstat (limited to 'tools')
-rw-r--r--tools/search.js2
1 files changed, 1 insertions, 1 deletions
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;
}