diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 00:06:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 01:11:45 +0200 |
commit | aedf491abf5c70d7573081fde70fdbe5c7878f43 (patch) | |
tree | 73d478357e4229018e9f4aff0b8cc0d567a917fb | |
parent | 8ead923a82dd51b9da48ca618706608764e61368 (diff) |
f
-rw-r--r-- | editor/draw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp index 7fd3add3..f5a906d2 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -132,8 +132,8 @@ void app::draw_collision_boxes() if (floormat_main::check_chunk_visible(shader.camera_offset(), sz)) { constexpr float maxf = 1 << 24, max2f[] = { maxf, maxf }, min2f[] = { -maxf, -maxf }; - const auto* rtree = c.rtree(); - rtree->Search(min2f, max2f, [&](object_id data, const rect_type& rect) { + const auto& rtree = *c.rtree(); + rtree.Search(min2f, max2f, [&](object_id data, const rect_type& rect) { [[maybe_unused]] auto x = std::bit_cast<collision_data>(data); #if 0 if (x.tag == (uint64_t)collision_type::geometry) |