diff options
Diffstat (limited to '')
-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; } |