From 20791b6efe62eb76724dd9f51b8ae9033e933108 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 3 Sep 2019 20:57:02 +0200 Subject: [PATCH] fix invalid comp. function --- Algorithm/PathFinding/JumpPointSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithm/PathFinding/JumpPointSearch.php b/Algorithm/PathFinding/JumpPointSearch.php index 67a99cbae..0b7cdc28c 100644 --- a/Algorithm/PathFinding/JumpPointSearch.php +++ b/Algorithm/PathFinding/JumpPointSearch.php @@ -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;