Common/ByteStream: Fix buffer corruption in MemoryByteStream

This commit is contained in:
Connor McLaughlin 2020-06-29 02:42:14 +10:00
parent e5f56fcd33
commit dc7cc3b67f

View file

@ -479,7 +479,7 @@ bool MemoryByteStream::WriteByte(u8 SourceByte)
{ {
if (m_iPosition < m_iSize) if (m_iPosition < m_iSize)
{ {
m_pMemory[m_iSize++] = SourceByte; m_pMemory[m_iPosition++] = SourceByte;
return true; return true;
} }