fix binary heap

This commit is contained in:
Leijurv 2018-09-02 20:59:25 -07:00
parent 3d63abe950
commit 5cbc9d2d74
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; array[size] = null;
size--; size--;
result.heapPosition = -1; result.heapPosition = -1;
if (size < 3) { if (size < 2) {
return result; return result;
} }
int index = 1; int index = 1;