summaryrefslogtreecommitdiffstats
path: root/src/ByteBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ByteBuffer.cpp')
-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;
}