We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f65183 commit 93e7a94Copy full SHA for 93e7a94
1 file changed
source/pathfinding/a_star.cpp
@@ -87,11 +87,11 @@ namespace omath::pathfinding
87
88
const auto current_node = current_node_it->second;
89
90
+ closed_list.emplace(current, current_node);
91
+
92
if (current == end_vertex)
93
return reconstruct_final_path(closed_list, current);
94
- closed_list.emplace(current, current_node);
-
95
for (const auto& neighbor: nav_mesh.get_neighbors(current))
96
{
97
if (closed_list.contains(neighbor))
0 commit comments