diff options
author | madmaxoft <github@xoft.cz> | 2014-05-30 09:49:57 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-30 09:49:57 +0200 |
commit | 5368c5dd79bce465d32517eec62701abc9b380d9 (patch) | |
tree | 8d8cce0ffb779943961934ffd8f1a6028176c239 /src/ChunkData.cpp | |
parent | Fixed test return values. (diff) | |
download | cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.gz cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.bz2 cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.lz cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.xz cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.zst cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.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 5c11212ea..6ccb28fe4 100644 --- a/src/ChunkData.cpp +++ b/src/ChunkData.cpp @@ -343,7 +343,7 @@ void cChunkData::CopyBlockTypes(BLOCKTYPE * a_Dest, size_t a_Idx, size_t a_Lengt ToSkip = std::max(ToSkip - (int)SectionBlockCount, 0); StartPos = SectionBlockCount - ToSkip; } - if (ToSkip < SectionBlockCount) + if (ToSkip < (int)SectionBlockCount) { size_t ToCopy = std::min(+SectionBlockCount, a_Length); a_Length -= ToCopy; |