summaryrefslogtreecommitdiffhomepage
path: root/src/dijkstra.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-04 15:18:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-04 15:18:32 +0100
commita65aaeb43df61a9127aed0c4eb8dd4cb0b3b0bd6 (patch)
tree020f69f766545fa6fc960b3fdfcb4a7cda20313d /src/dijkstra.cpp
parent7fa7b3bc844d61ecc986f77819a11d1e4a526c57 (diff)
b
Diffstat (limited to 'src/dijkstra.cpp')
-rw-r--r--src/dijkstra.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dijkstra.cpp b/src/dijkstra.cpp
index 9081d5a7..c9433132 100644
--- a/src/dijkstra.cpp
+++ b/src/dijkstra.cpp
@@ -1,6 +1,7 @@
#include "path-search.hpp"
#include "compat/format.hpp"
#include "compat/debug.hpp"
+#include "compat/vector-wrapper.hpp"
#include "compat/heap.hpp"
#include "object.hpp"
#include "point.hpp"
@@ -106,7 +107,7 @@ void set_result_from_idx(path_search_result& result, const Array<visited>& nodes
{
fm_debug_assert(idx != (uint32_t)-1);
- auto& path = result.path();
+ auto& path = result.raw_path().vec;
path.clear();
const auto& to_node = nodes[idx];