lib/nbt: Fix a bug in NBT::Helper::writeString()

Writing a string to a byte vector would result in it being replaced
with one holding only the string.
Soda
BodgeMaster 2022-10-06 10:21:59 +02:00
parent ecf3b14b5a
commit 3cc1222de9
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ namespace NBT {
if(exportedString.isError){
return ErrorOrVoid(true, ErrorCodes::OVERRUN);
}
*destination = exportedString.value;
destination->insert(destination->end(), exportedString.value.begin(), exportedString.value.end());
return ErrorOrVoid();
}