Skip to content

Commit

Permalink
fix: fix empty numarray parse #1552
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jun 23, 2024
1 parent e58ed41 commit 04040ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mc/nbt/detail/SnbtParseImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ Expected<R> parseNumArray(std::string_view& s, F&& f) {
return forwardError(skipped.error());
}
if (s.front() == ']') {
s.remove_prefix(1);
return R{};
}
T res;
Expand Down

0 comments on commit 04040ca

Please sign in to comment.