diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-11 10:35:06 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-11 13:35:27 +0200 |
| commit | ca4544f04cc67c296e58170e76203bc11519d988 (patch) | |
| tree | 2dcbe936be206c4e7f95a28525fafff6f7340e5e /src/path-search-dijkstra.cpp | |
| parent | 018755dab3d2a5bb0ead627b6ecad6735a9f0114 (diff) | |
add benchmark executable
Diffstat (limited to 'src/path-search-dijkstra.cpp')
| -rw-r--r-- | src/path-search-dijkstra.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path-search-dijkstra.cpp b/src/path-search-dijkstra.cpp index 77c3d8b6..a40d79ad 100644 --- a/src/path-search-dijkstra.cpp +++ b/src/path-search-dijkstra.cpp @@ -198,7 +198,7 @@ path_search_result astar::Dijkstra(world& w, point from_, point to_, object_id o return {}; path_search_result result; - auto& path = result._node->vec; path.clear(); + auto& path = result.path(); path.clear(); indexes[from_] = 0; nodes.push_back({.dist = 0, .coord = from, .offset = from_offset }); |
