introduce bug in binary heap

This commit is contained in:
Leijurv 2018-09-02 14:51:10 -07:00
parent 7fd0d5799d
commit 3c28d07cb6
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

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