mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-25 23:58:39 +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->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);
|
||||
$node = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user