summaryrefslogtreecommitdiffhomepage
path: root/src/path-search.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/path-search.cpp')
-rw-r--r--src/path-search.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path-search.cpp b/src/path-search.cpp
index f5a36feb..2b93ad14 100644
--- a/src/path-search.cpp
+++ b/src/path-search.cpp
@@ -46,7 +46,7 @@ bool path_search::is_passable_1(chunk& c, Vector2 min, Vector2 max, object_id ow
return is_passable;
}
-bool path_search::is_passable_(chunk* c0, const std::array<world::neighbor_pair, 8>& neighbors,
+bool path_search::is_passable_(chunk* c0, const std::array<chunk*, 8>& neighbors,
Vector2 min, Vector2 max, object_id own_id, const pred& p)
{
fm_debug_assert(max >= min);
@@ -60,7 +60,7 @@ bool path_search::is_passable_(chunk* c0, const std::array<world::neighbor_pair,
for (auto i = 0uz; i < 8; i++)
{
auto nb = world::neighbor_offsets[i];
- auto* c2 = neighbors[i].c;
+ auto* c2 = neighbors[i];
if (c2)
{