From 2502246d8b08e8660dd08e2c2089c2ef2cf3458b Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 24 Oct 2024 19:18:54 +0200 Subject: fix dijkstra --- DijkstraPathfinder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DijkstraPathfinder.h') diff --git a/DijkstraPathfinder.h b/DijkstraPathfinder.h index d02d9cb..eddb26f 100644 --- a/DijkstraPathfinder.h +++ b/DijkstraPathfinder.h @@ -19,12 +19,12 @@ private: XY end; struct Node { + unsigned int distance = -1; XY parent; - unsigned int cost = -1; }; Node & map_get(const XY &); std::unordered_map map; - void explore(const XY &, unsigned int cost = 0); + void dijkstra(const XY &); }; -- cgit v1.2.3