From 8081297207cffc303cd55c19361629509840a7cf Mon Sep 17 00:00:00 2001 From: jyelon Date: Sat, 21 Feb 2026 20:32:36 -0500 Subject: [PATCH] Use fewer pointers: no back-pointer in tangibles. --- luprex/cpp/core/world-core.cpp | 2 +- luprex/cpp/core/world.hpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/luprex/cpp/core/world-core.cpp b/luprex/cpp/core/world-core.cpp index 0b8052e2..1a03231e 100644 --- a/luprex/cpp/core/world-core.cpp +++ b/luprex/cpp/core/world-core.cpp @@ -147,7 +147,7 @@ World::World(WorldType wt) { assign_seqno_ = 1; } -Tangible::Tangible(World *w, int64_t id) : world_(w), anim_queue_(), id_player_pool_(&w->id_global_pool_) { +Tangible::Tangible(World *w, int64_t id) : anim_queue_(), id_player_pool_(&w->id_global_pool_) { plane_item_.set_id(id); plane_item_.track(&w->plane_map_); } diff --git a/luprex/cpp/core/world.hpp b/luprex/cpp/core/world.hpp index 043f32f0..b5094f9d 100644 --- a/luprex/cpp/core/world.hpp +++ b/luprex/cpp/core/world.hpp @@ -45,9 +45,6 @@ private: void deserialize(StreamBuffer *sb); public: - // Always points back to the world model. - World *world_; - // Animation queue. // AnimQueue anim_queue_;