diff options
author | Mattes D <github@xoft.cz> | 2015-03-11 09:56:49 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-03-11 09:56:49 +0100 |
commit | 3b91e31ccd4e77bb807b29a0cbd5d5d2809145d0 (patch) | |
tree | 0002a74646be7327c1a418fa26ab66c94668f51e /src | |
parent | Fixed client kick/crash if many block changes happend (diff) | |
parent | Fixed Bug in cChunkData. (diff) | |
download | cuberite-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 |
Diffstat (limited to 'src')
-rw-r--r-- | src/ChunkData.cpp | 2 |
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); } } } |