fix binary heap
This commit is contained in:
parent
3d63abe950
commit
5cbc9d2d74
@ -101,7 +101,7 @@ public final class BinaryHeapOpenSet implements IOpenSet {
|
||||
array[size] = null;
|
||||
size--;
|
||||
result.heapPosition = -1;
|
||||
if (size < 3) {
|
||||
if (size < 2) {
|
||||
return result;
|
||||
}
|
||||
int index = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user