lib/nbt: Fix not actually returning from Compound::setElementPointerAt in the do nothing case

Soda
BodgeMaster 2022-10-14 20:01:47 +02:00
parent 3b56a52085
commit 374466f26c
1 changed files with 1 additions and 0 deletions

View File

@ -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