summaryrefslogtreecommitdiffstats
path: root/source/WorldStorage/FastNBT.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-01 19:00:05 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-01 19:00:05 +0200
commitbdc06b6e74e52183b3847f932229dd6328240e15 (patch)
treecc49b160923954457f074a72a58572c804a11fd4 /source/WorldStorage/FastNBT.cpp
parentFile: Added file rename and deletion functions (diff)
downloadcuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar
cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.gz
cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.bz2
cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.lz
cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.xz
cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.tar.zst
cuberite-bdc06b6e74e52183b3847f932229dd6328240e15.zip
Diffstat (limited to '')
-rw-r--r--source/WorldStorage/FastNBT.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/WorldStorage/FastNBT.cpp b/source/WorldStorage/FastNBT.cpp
index d5dc2b923..e55011069 100644
--- a/source/WorldStorage/FastNBT.cpp
+++ b/source/WorldStorage/FastNBT.cpp
@@ -505,6 +505,7 @@ void cFastNBTWriter::AddIntArray(const AString & a_Name, const int * a_Value, si
Int32 len = htonl(a_NumElements);
m_Result.append((const char *)&len, 4);
#if defined(ANDROID_NDK)
+ // Android has alignment issues - cannot byteswap (htonl) an int that is not 32-bit-aligned, which happens in the regular version
for (size_t i = 0; i < a_NumElements; i++)
{
int Element = htonl(a_Value[i]);