From 2e0c0009806860e4e8ac24663afdc5d926d1213f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Mar 2023 14:52:54 +0100 Subject: src: add O(1) chunk access from entity --- src/scenery.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scenery.hpp') diff --git a/src/scenery.hpp b/src/scenery.hpp index 6f8afadd..dfc0e416 100644 --- a/src/scenery.hpp +++ b/src/scenery.hpp @@ -47,7 +47,7 @@ struct scenery final : entity private: friend struct world; - scenery(std::uint64_t id, struct world& w, entity_type type, const scenery_proto& proto); + scenery(std::uint64_t id, struct chunk& c, entity_type type, const scenery_proto& proto); }; template<> struct entity_type_ : std::integral_constant {}; -- cgit v1.2.3