diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-12-18 17:08:29 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-12-18 17:08:29 +0100 |
commit | a99c82323e310c883876a51f8fac3e075d87540d (patch) | |
tree | a9e2985d5527b4c78e3a1386ca1e37e8148294a9 /src/WorldStorage/FastNBT.cpp | |
parent | Merge pull request #2769 from cuberite/FastNBTAsserts (diff) | |
parent | Fix off by two error in ReadString (diff) | |
download | cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.gz cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.bz2 cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.lz cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.xz cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.zst cuberite-a99c82323e310c883876a51f8fac3e075d87540d.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; } |