diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 12:19:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 12:19:40 +0200 |
commit | cbb73181de4f6fbe3e7bae9d7259c5169d04b275 (patch) | |
tree | ff0e1ab29e64377a01d611096466b00aadb0f7fa /src | |
parent | d0b8c9beb47c4c2e52afa07549823ffa3f97b178 (diff) |
a
Diffstat (limited to 'src')
-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 26e6b742..321ca2e4 100644 --- a/src/path-search-dijkstra.cpp +++ b/src/path-search-dijkstra.cpp @@ -181,7 +181,7 @@ path_search_result astar::Dijkstra(world& w, const point from_, const point to_, cur_dist = n.dist; } - if (auto d = distance(cur_pt, to_); d < closest) + if (auto d = distance(cur_pt, to_); d < closest) [[unlikely]] { closest = d; closest_pos = cur_pt; |