summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-10 15:23:44 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-10 15:32:46 +0100
commit7f08c950c56b69026c879c4985a3e0134aed1864 (patch)
tree442e55c5b93d8484d7338f496457500841959e6e /src
parent09183eb08755b20804f26a4341ab30bcea89a697 (diff)
src: ensure rtree is filled qhen requesting it
Diffstat (limited to 'src')
-rw-r--r--src/chunk-collision.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp
index 3e10ea75..3cf772ef 100644
--- a/src/chunk-collision.cpp
+++ b/src/chunk-collision.cpp
@@ -7,7 +7,7 @@
namespace floormat {
const chunk::RTree* chunk::rtree() const noexcept { return &_rtree; }
-chunk::RTree* chunk::rtree() noexcept { return &_rtree; }
+chunk::RTree* chunk::rtree() noexcept { ensure_passability(); return &_rtree; }
namespace {