summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-29 21:41:44 +0200
committermadmaxoft <github@xoft.cz>2014-05-29 21:41:44 +0200
commit8c4dd5dcfd91f8223e78ff7fd24f8e4e73d1f509 (patch)
treef912a1c10f2076479b082a1657860004488e5f90 /src
parentFix bug when a_Idx is not a multiple of SectionBLockCount (diff)
downloadcuberite-8c4dd5dcfd91f8223e78ff7fd24f8e4e73d1f509.tar
cuberite-8c4dd5dcfd91f8223e78ff7fd24f8e4e73d1f509.tar.gz
cuberite-8c4dd5dcfd91f8223e78ff7fd24f8e4e73d1f509.tar.bz2
cuberite-8c4dd5dcfd91f8223e78ff7fd24f8e4e73d1f509.tar.lz
cuberite-8c4dd5dcfd91f8223e78ff7fd24f8e4e73d1f509.tar.xz
cuberite-8c4dd5dcfd91f8223e78ff7fd24f8e4e73d1f509.tar.zst
cuberite-8c4dd5dcfd91f8223e78ff7fd24f8e4e73d1f509.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 be96be051..74f5d78ba 100644
--- a/src/ChunkData.cpp
+++ b/src/ChunkData.cpp
@@ -345,7 +345,7 @@ void cChunkData::CopyBlockTypes(BLOCKTYPE * a_Dest, size_t a_Idx, size_t a_Lengt
}
if (ToSkip < SectionBlockCount)
{
- size_t ToCopy = std::min(SectionBlockCount, a_Length);
+ size_t ToCopy = std::min(+SectionBlockCount, a_Length);
a_Length -= ToCopy;
if (m_Sections[i] != NULL)
{