mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Switch to shared_ptr for chunk bounding boxes
This commit is contained in:
parent
48a649abf1
commit
0726335252
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue