diff options
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r-- | src/chunk.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp index f117237c..0cd7dfc7 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -86,7 +86,8 @@ struct chunk final void ensure_passability() noexcept; - RTree<std::uint64_t, float, 2, float>* rtree() const noexcept { return &const_cast<chunk*>(this)->_rtree; } + const RTree<std::uint64_t, float, 2, float>* rtree() const noexcept; + RTree<std::uint64_t, float, 2, float>* rtree() noexcept; private: std::array<std::shared_ptr<tile_atlas>, TILE_COUNT> _ground_atlases; |