summaryrefslogtreecommitdiffstats
path: root/source/ByteBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/ByteBuffer.cpp')
-rw-r--r--source/ByteBuffer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/ByteBuffer.cpp b/source/ByteBuffer.cpp
index 75464ba45..028b4f08a 100644
--- a/source/ByteBuffer.cpp
+++ b/source/ByteBuffer.cpp
@@ -297,7 +297,9 @@ bool cByteBuffer::ReadBool(bool & a_Value)
CHECK_THREAD;
CheckValid();
NEEDBYTES(1);
- a_Value = (m_Buffer[m_ReadPos++] != 0);
+ char Value = 0;
+ ReadBuf(&Value, 1);
+ a_Value = (Value != 0);
return true;
}