diff options
author | worktycho <work.tycho@gmail.com> | 2015-03-10 21:32:01 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-03-10 21:32:01 +0100 |
commit | 45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2 (patch) | |
tree | 0002a74646be7327c1a418fa26ab66c94668f51e | |
parent | Fixed client kick/crash if many block changes happend (diff) | |
download | cuberite-45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2.tar cuberite-45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2.tar.gz cuberite-45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2.tar.bz2 cuberite-45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2.tar.lz cuberite-45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2.tar.xz cuberite-45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2.tar.zst cuberite-45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2.zip |
Diffstat (limited to '')
-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); } } } |