summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-16 12:19:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-16 12:19:40 +0200
commitcbb73181de4f6fbe3e7bae9d7259c5169d04b275 (patch)
treeff0e1ab29e64377a01d611096466b00aadb0f7fa /src
parentd0b8c9beb47c4c2e52afa07549823ffa3f97b178 (diff)
a
Diffstat (limited to 'src')
-rw-r--r--src/path-search-dijkstra.cpp2
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;