From 07263352529e29324872b71c77ec7dd12758df64 Mon Sep 17 00:00:00 2001 From: Soggy_Pancake <54160598+Soggy-Pancake@users.noreply.github.com> Date: Wed, 4 Mar 2026 02:23:22 -0700 Subject: [PATCH] Switch to shared_ptr for chunk bounding boxes --- Minecraft.Client/Chunk.cpp | 2 +- Minecraft.Client/Chunk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/Chunk.cpp b/Minecraft.Client/Chunk.cpp index 4da8b2e3f..526aa7eb3 100644 --- a/Minecraft.Client/Chunk.cpp +++ b/Minecraft.Client/Chunk.cpp @@ -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; diff --git a/Minecraft.Client/Chunk.h b/Minecraft.Client/Chunk.h index 543e79971..d09ae5e5e 100644 --- a/Minecraft.Client/Chunk.h +++ b/Minecraft.Client/Chunk.h @@ -47,7 +47,7 @@ public: int xRenderOffs, yRenderOffs, zRenderOffs; int xm, ym, zm; - unique_ptr bb; + shared_ptr bb; ClipChunk *clipChunk; int id;