diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 12:41:12 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 12:41:12 +0200 |
commit | 233a4778102c8e40183357fc1fc34436c879c852 (patch) | |
tree | 78eaf0b8da5e3aa010df3bce26a8aa8e8522efb2 | |
parent | 79cc88894cd4b91878a1cefe610eb69996730e00 (diff) |
a
-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 47c87689..7bc1726a 100644 --- a/src/path-search-dijkstra.cpp +++ b/src/path-search-dijkstra.cpp @@ -169,7 +169,7 @@ path_search_result astar::Dijkstra(world& w, const point from_, const point to_, auto closest_pos = from_; uint32_t closest_path_len = 0; auto goal_idx = (uint32_t)-1; - const auto goal_bb = bbox_from_pos(Vector2(to_.local()), to_.offset(), own_size); + const auto goal_bb = bbox_from_pos(Vector2(to_.local()), to_offset, own_size); const auto goal_chunk_idx = cache.get_chunk_index(Vector2i(to_.chunk())); const auto goal_tile_idx = cache.get_tile_index(Vector2i(to_.local()), to_offset); |