aboutsummaryrefslogtreecommitdiff
path: root/DijkstraPathfinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DijkstraPathfinder.cpp')
-rw-r--r--DijkstraPathfinder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/DijkstraPathfinder.cpp b/DijkstraPathfinder.cpp
index d920fc9..e8f0132 100644
--- a/DijkstraPathfinder.cpp
+++ b/DijkstraPathfinder.cpp
@@ -5,6 +5,11 @@
using namespace std;
+struct Neighbor {
+ unsigned int distance = -1;
+ XY position;
+};
+
void DijkstraPathfinder::clear() {
Pathfinder::clear();
this->map.clear();