summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-03-11 09:56:49 +0100
committerMattes D <github@xoft.cz>2015-03-11 09:56:49 +0100
commit3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0 (patch)
tree0002a74646be7327c1a418fa26ab66c94668f51e
parentFixed client kick/crash if many block changes happend (diff)
parentFixed Bug in cChunkData. (diff)
downloadcuberite-3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0.tar
cuberite-3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0.tar.gz
cuberite-3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0.tar.bz2
cuberite-3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0.tar.lz
cuberite-3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0.tar.xz
cuberite-3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0.tar.zst
cuberite-3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0.zip
-rw-r--r--src/ChunkData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkData.cpp b/src/ChunkData.cpp
index 57b27c5e0..80f40d39e 100644
--- a/src/ChunkData.cpp
+++ b/src/ChunkData.cpp
@@ -361,7 +361,7 @@ void cChunkData::CopyBlockTypes(BLOCKTYPE * a_Dest, size_t a_Idx, size_t a_Lengt
}
else
{
- memset(&a_Dest[(i * SectionBlockCount) - a_Idx], 0, sizeof(BLOCKTYPE) * ToCopy);
+ memset(&a_Dest[(i * SectionBlockCount) + StartPos - a_Idx], 0, sizeof(BLOCKTYPE) * ToCopy);
}
}
}