diff options
author | madmaxoft <github@xoft.cz> | 2013-11-29 18:39:40 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-29 18:39:40 +0100 |
commit | 3963a7204664e37415ed1a1ca140864c9dd402f3 (patch) | |
tree | 7ca871a65ed7a16c11705d733503480b9df02c0c /src/ByteBuffer.cpp | |
parent | Alpha-sorted BlockMetas, added red sand. (diff) | |
download | cuberite-3963a7204664e37415ed1a1ca140864c9dd402f3.tar cuberite-3963a7204664e37415ed1a1ca140864c9dd402f3.tar.gz cuberite-3963a7204664e37415ed1a1ca140864c9dd402f3.tar.bz2 cuberite-3963a7204664e37415ed1a1ca140864c9dd402f3.tar.lz cuberite-3963a7204664e37415ed1a1ca140864c9dd402f3.tar.xz cuberite-3963a7204664e37415ed1a1ca140864c9dd402f3.tar.zst cuberite-3963a7204664e37415ed1a1ca140864c9dd402f3.zip |
Diffstat (limited to 'src/ByteBuffer.cpp')
-rw-r--r-- | src/ByteBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ByteBuffer.cpp b/src/ByteBuffer.cpp index 8f2b76c1f..a6be09ad3 100644 --- a/src/ByteBuffer.cpp +++ b/src/ByteBuffer.cpp @@ -818,7 +818,7 @@ void cByteBuffer::AdvanceReadPos(int a_Count) CHECK_THREAD; CheckValid(); m_ReadPos += a_Count; - if (m_ReadPos > m_BufferSize) + if (m_ReadPos >= m_BufferSize) { m_ReadPos -= m_BufferSize; } |