summaryrefslogtreecommitdiffstats
path: root/source/WorldStorage/FastNBT.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-28 18:30:10 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-28 18:30:10 +0100
commit265c810079acd2b82062827824f3ff65d495aa94 (patch)
treef6911b2f347913f3de0a5cb640ce6813c3dc4906 /source/WorldStorage/FastNBT.cpp
parentAdded cWorld:SpawnMob(PosX, PosY, PosZ, EntityType) to Lua API (diff)
downloadcuberite-265c810079acd2b82062827824f3ff65d495aa94.tar
cuberite-265c810079acd2b82062827824f3ff65d495aa94.tar.gz
cuberite-265c810079acd2b82062827824f3ff65d495aa94.tar.bz2
cuberite-265c810079acd2b82062827824f3ff65d495aa94.tar.lz
cuberite-265c810079acd2b82062827824f3ff65d495aa94.tar.xz
cuberite-265c810079acd2b82062827824f3ff65d495aa94.tar.zst
cuberite-265c810079acd2b82062827824f3ff65d495aa94.zip
Diffstat (limited to 'source/WorldStorage/FastNBT.cpp')
-rw-r--r--source/WorldStorage/FastNBT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/WorldStorage/FastNBT.cpp b/source/WorldStorage/FastNBT.cpp
index 13a6819e1..397df036e 100644
--- a/source/WorldStorage/FastNBT.cpp
+++ b/source/WorldStorage/FastNBT.cpp
@@ -502,7 +502,7 @@ void cFastNBTWriter::AddIntArray(const AString & a_Name, const int * a_Value, si
{
TagCommon(a_Name, TAG_IntArray);
Int32 len = htonl(a_NumElements);
- m_Result.append((const char *)&len, 2);
+ m_Result.append((const char *)&len, 4);
int * Elements = (int *)(m_Result.data() + m_Result.size());
m_Result.append(a_NumElements * 4, (char)0);
for (size_t i = 0; i < a_NumElements; i++)