fix invalid comp. function

This commit is contained in:
Dennis Eichhorn 2019-09-03 20:57:02 +02:00
parent 675c4bcd3c
commit 20791b6efe

View File

@ -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;