lib/nbt: Fix not actually returning from Compound::setElementPointerAt in the do nothing case
parent
3b56a52085
commit
374466f26c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue