Use fewer pointers: no back-pointer in tangibles.
This commit is contained in:
@@ -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_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user