aboutsummaryrefslogtreecommitdiff
path: root/DijkstraPathfinder.h
diff options
context:
space:
mode:
Diffstat (limited to 'DijkstraPathfinder.h')
-rw-r--r--DijkstraPathfinder.h4
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 &);
};