diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-10 21:18:53 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-10 21:18:53 +0100 |
commit | 98e15a34a416c31d4689836f4f38161f1270513c (patch) | |
tree | 1ae50f2ff4748ac22c810f1f631002b223e02c62 /src/WorldStorage/FastNBT.cpp | |
parent | Fixed test asserts (diff) | |
download | cuberite-98e15a34a416c31d4689836f4f38161f1270513c.tar cuberite-98e15a34a416c31d4689836f4f38161f1270513c.tar.gz cuberite-98e15a34a416c31d4689836f4f38161f1270513c.tar.bz2 cuberite-98e15a34a416c31d4689836f4f38161f1270513c.tar.lz cuberite-98e15a34a416c31d4689836f4f38161f1270513c.tar.xz cuberite-98e15a34a416c31d4689836f4f38161f1270513c.tar.zst cuberite-98e15a34a416c31d4689836f4f38161f1270513c.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 f1f092e0b..be25fd1a4 100644 --- a/src/WorldStorage/FastNBT.cpp +++ b/src/WorldStorage/FastNBT.cpp @@ -510,7 +510,7 @@ void cFastNBTWriter::AddIntArray(const AString & a_Name, const int * a_Value, si size_t size = m_Result.length(); if ((cap - size) < (4 + a_NumElements * 4)) { - m_Result.reserve(size +4 + a_NumElements * 4); + m_Result.reserve(size + 4 + (a_NumElements * 4)); } m_Result.append((const char *)&len, 4); for (size_t i = 0; i < a_NumElements; i++) |