aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Chunk.h
diff options
context:
space:
mode:
authorModMaker101 <119018978+ModMaker101@users.noreply.github.com>2026-03-04 10:43:29 -0500
committerGitHub <noreply@github.com>2026-03-04 22:43:29 +0700
commit2be856a2d447ab758e02bfeaaa9cac5e1114dbfc (patch)
tree45522b197014c467126fce318f963b5d50d76664 /Minecraft.Client/Chunk.h
parentca5fde56fed613a8f45767868636e2321b03d3f3 (diff)
Fix Chunk destructor segfault using smart pointers #112 (#414)
Diffstat (limited to 'Minecraft.Client/Chunk.h')
-rw-r--r--Minecraft.Client/Chunk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Minecraft.Client/Chunk.h b/Minecraft.Client/Chunk.h
index f7947156..e0ae016e 100644
--- a/Minecraft.Client/Chunk.h
+++ b/Minecraft.Client/Chunk.h
@@ -46,11 +46,11 @@ public:
int xRender, yRender, zRender;
int xRenderOffs, yRenderOffs, zRenderOffs;
- int xm, ym, zm;
- AABB *bb;
+ int xm, ym, zm;
+ shared_ptr<AABB> bb;
ClipChunk *clipChunk;
- int id;
+ int id;
//public:
// vector<shared_ptr<TileEntity> > renderableTileEntities; // 4J - removed