diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-05-11 19:42:38 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-05-11 19:42:38 +0200 |
commit | 5d39ecc64b3c690b2da05936c73c9442511b9509 (patch) | |
tree | 628827406179e38aae80194cc860369f1b32f93b /src | |
parent | test 0 values (diff) | |
download | cuberite-5d39ecc64b3c690b2da05936c73c9442511b9509.tar cuberite-5d39ecc64b3c690b2da05936c73c9442511b9509.tar.gz cuberite-5d39ecc64b3c690b2da05936c73c9442511b9509.tar.bz2 cuberite-5d39ecc64b3c690b2da05936c73c9442511b9509.tar.lz cuberite-5d39ecc64b3c690b2da05936c73c9442511b9509.tar.xz cuberite-5d39ecc64b3c690b2da05936c73c9442511b9509.tar.zst cuberite-5d39ecc64b3c690b2da05936c73c9442511b9509.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkBuffer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ChunkBuffer.cpp b/src/ChunkBuffer.cpp index 73ccd9c02..141601113 100644 --- a/src/ChunkBuffer.cpp +++ b/src/ChunkBuffer.cpp @@ -151,7 +151,7 @@ void cChunkBuffer::SetBlocks(const BLOCKTYPE * a_src) size_t j = 0; // do nothing whilst 0 for (; j < segment_length && a_src[i * segment_length + j] == 0; j++); - if (j != segment_length) + if (j != (segment_length - 1)) { m_Sections[i] = Allocate(); memcpy( @@ -186,7 +186,7 @@ void cChunkBuffer::SetMeta(const NIBBLETYPE * a_src) size_t j = 0; // do nothing whilst 0 for (; j < segment_length && a_src[i * segment_length + j] == 0; j++); - if (j != segment_length) + if (j != (segment_length - 1)) { m_Sections[i] = Allocate(); memcpy( @@ -222,7 +222,7 @@ void cChunkBuffer::SetLight(const NIBBLETYPE * a_src) size_t j = 0; // do nothing whilst 0 for (; j < segment_length && a_src[i * segment_length + j] == 0; j++); - if (j != segment_length) + if (j != (segment_length - 1)) { m_Sections[i] = Allocate(); memcpy( @@ -258,7 +258,7 @@ void cChunkBuffer::SetSkyLight (const NIBBLETYPE * a_src) size_t j = 0; // do nothing whilst 0 for (; j < segment_length && a_src[i * segment_length + j] == 0xFF; j++); - if (j != segment_length) + if (j != (segment_length -1)) { m_Sections[i] = Allocate(); memcpy( |