introduce bug in binary heap

This commit is contained in:
Leijurv
2018-09-02 14:51:10 -07:00
parent 7fd0d5799d
commit 3c28d07cb6

View File

@@ -101,7 +101,7 @@ public final class BinaryHeapOpenSet implements IOpenSet {
array[size] = null; array[size] = null;
size--; size--;
result.heapPosition = -1; result.heapPosition = -1;
if (size < 2) { if (size < 3) {
return result; return result;
} }
int index = 1; int index = 1;