Switch to shared_ptr for chunk bounding boxes

This commit is contained in:
Soggy_Pancake 2026-03-04 02:23:22 -07:00
parent 48a649abf1
commit 0726335252
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ void Chunk::makeCopyForRebuild(Chunk *source)
this->xm = source->xm;
this->ym = source->ym;
this->zm = source->zm;
this->bb = move(source->bb);
this->bb = source->bb;
this->clipChunk = NULL;
this->id = source->id;
this->globalRenderableTileEntities = source->globalRenderableTileEntities;

View file

@ -47,7 +47,7 @@ public:
int xRenderOffs, yRenderOffs, zRenderOffs;
int xm, ym, zm;
unique_ptr<AABB> bb;
shared_ptr<AABB> bb;
ClipChunk *clipChunk;
int id;