From 7508db41ed056a50b36656dd73aafcaa9e43f6e2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 24 Jul 2024 08:51:25 +0200 Subject: rename some collision_data members to be more descriptive --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/search.cpp') diff --git a/src/search.cpp b/src/search.cpp index 220e3869..424b1743 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -45,7 +45,7 @@ bool path_search::is_passable_1(chunk& c, Vector2 min, Vector2 max, object_id ow rt.Search(min.data(), max.data(), [&](uint64_t data, const auto& r) { auto x = std::bit_cast(data); - if (x.data != own_id && x.pass != (uint64_t)pass_mode::pass) + if (x.id != own_id && x.pass != (uint64_t)pass_mode::pass) { if (rect_intersects(min, max, {r.m_min[0], r.m_min[1]}, {r.m_max[0], r.m_max[1]})) if (p(x) != path_search_continue::pass) -- cgit v1.2.3