From ba32d700e226bab34607e47fbd0104bc072471c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Thu, 31 May 2018 17:02:07 +0200 Subject: [PATCH] Fix compilation --- include/Nazara/Core/ByteStream.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Nazara/Core/ByteStream.inl b/include/Nazara/Core/ByteStream.inl index 0b32215e7..afd9f1fd3 100644 --- a/include/Nazara/Core/ByteStream.inl +++ b/include/Nazara/Core/ByteStream.inl @@ -86,11 +86,11 @@ namespace Nz if (!m_context.stream) return true; - if (m_context.currentBitPos != 8) + if (m_context.writeBitPos != 8) { - m_context.currentBitPos = 8; //< To prevent Serialize to flush bits itself + m_context.writeBitPos = 8; //< To prevent Serialize to flush bits itself - if (!Serialize(m_context, m_context.currentByte)) + if (!Serialize(m_context, m_context.writeByte)) return false; }