summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-03-10 21:32:01 +0100
committerworktycho <work.tycho@gmail.com>2015-03-10 21:32:01 +0100
commit45fa2d98db72bd8443dae7727f74ebc9fdf2f5d2 (patch)
tree0002a74646be7327c1a418fa26ab66c94668f51e
parentFixed client kick/crash if many block changes happend (diff)
downloadcuberite-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.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);
}
}
}