diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-24 19:18:54 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-24 19:18:54 +0200 |
commit | 2502246d8b08e8660dd08e2c2089c2ef2cf3458b (patch) | |
tree | fa39e7f27f1bc91679301bba21e096e615a4f0f5 /DijkstraPathfinder.h | |
parent | faa82f0a6004026c94a6415baf5e138b48dc1629 (diff) |
fix dijkstra
Diffstat (limited to 'DijkstraPathfinder.h')
-rw-r--r-- | DijkstraPathfinder.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<XY, Node> map; - void explore(const XY &, unsigned int cost = 0); + void dijkstra(const XY &); }; |