diff options
author | worktycho <work.tycho@gmail.com> | 2015-12-18 16:53:41 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-12-18 16:53:41 +0100 |
commit | 1ee61c4f23253064128a7cccee9881bd42bdd10b (patch) | |
tree | a9e2985d5527b4c78e3a1386ca1e37e8148294a9 /src/WorldStorage | |
parent | Merge pull request #2769 from cuberite/FastNBTAsserts (diff) | |
download | cuberite-1ee61c4f23253064128a7cccee9881bd42bdd10b.tar cuberite-1ee61c4f23253064128a7cccee9881bd42bdd10b.tar.gz cuberite-1ee61c4f23253064128a7cccee9881bd42bdd10b.tar.bz2 cuberite-1ee61c4f23253064128a7cccee9881bd42bdd10b.tar.lz cuberite-1ee61c4f23253064128a7cccee9881bd42bdd10b.tar.xz cuberite-1ee61c4f23253064128a7cccee9881bd42bdd10b.tar.zst cuberite-1ee61c4f23253064128a7cccee9881bd42bdd10b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/FastNBT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/FastNBT.cpp b/src/WorldStorage/FastNBT.cpp index a90db2b71..1a81a6469 100644 --- a/src/WorldStorage/FastNBT.cpp +++ b/src/WorldStorage/FastNBT.cpp @@ -91,7 +91,7 @@ bool cParsedNBT::ReadString(size_t & a_StringStart, size_t & a_StringLen) NEEDBYTES(2); a_StringStart = m_Pos + 2; a_StringLen = static_cast<size_t>(GetBEShort(m_Data + m_Pos)); - NEEDBYTES(a_StringLen); + NEEDBYTES(2 + a_StringLen); m_Pos += 2 + a_StringLen; return true; } |