mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-14 07:28:41 +00:00
fix invalid comp. function
This commit is contained in:
parent
675c4bcd3c
commit
20791b6efe
|
|
@ -41,7 +41,7 @@ class JumpPointSearch implements PathFinderInterface
|
||||||
$startNode->setF(0.0);
|
$startNode->setF(0.0);
|
||||||
$startNode->setOpened(true);
|
$startNode->setOpened(true);
|
||||||
|
|
||||||
$openList = new Heap(function($node1, $node2) { return $node1->getF() - $nodeB->getF(); });
|
$openList = new Heap(function($node1, $node2) { return $node1->getF() - $node2->getF(); });
|
||||||
$openList->push($startNode);
|
$openList->push($startNode);
|
||||||
$node = null;
|
$node = null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user