From 374466f26ceca89e09ad0a1092b3d71962e246c7 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Fri, 14 Oct 2022 20:01:47 +0200 Subject: [PATCH] lib/nbt: Fix not actually returning from Compound::setElementPointerAt in the do nothing case --- src/lib/nbt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/nbt.cpp b/src/lib/nbt.cpp index e1d6963..f6f07a4 100644 --- a/src/lib/nbt.cpp +++ b/src/lib/nbt.cpp @@ -992,6 +992,7 @@ namespace NBT { if (position == this->tags.size() && pointer->getTagType() == TagType::END) { delete pointer; // do nothing, already have one of those + return ErrorOrVoid(); } else { delete pointer; // End tags may only go at the end and