Skip to content

Commit

Permalink
refactor: add move to parseSnbt
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jan 29, 2024
1 parent 6764f17 commit dd29317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mc/nbt/Tag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ std::string Tag::toSnbt(SnbtFormat snbtFormat, uchar indent) const {
std::unique_ptr<Tag> Tag::parseSnbt(std::string_view s) {
auto tag = parseSnbtValue(s);
if (tag) {
return tag->toUnique();
return (*std::move(tag)).toUnique();
}
return nullptr;
}

0 comments on commit dd29317

Please sign in to comment.