summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-29 18:39:40 +0100
committermadmaxoft <github@xoft.cz>2013-11-29 18:39:40 +0100
commit3963a7204664e37415ed1a1ca140864c9dd402f3 (patch)
tree7ca871a65ed7a16c11705d733503480b9df02c0c /src
parentAlpha-sorted BlockMetas, added red sand. (diff)
downloadcuberite-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 '')
-rw-r--r--src/ByteBuffer.cpp2
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;
}