ZoneLoading: Fix InsertPointer not increasing the buffer position by the size of the pointer

This commit is contained in:
Jan 2019-12-23 17:02:22 +01:00
parent 236108e5fb
commit db08cf5ebc

View File

@ -175,7 +175,7 @@ void** XBlockInputStream::InsertPointer()
{
m_block_stack.push(m_insert_block);
Align(sizeof(void*));
Align(alignof(void*));
if(m_block_offsets[m_insert_block->m_index] + sizeof(void*) > m_insert_block->m_buffer_size)
{
@ -184,6 +184,8 @@ void** XBlockInputStream::InsertPointer()
void** ptr = reinterpret_cast<void**>(&m_insert_block->m_buffer[m_block_offsets[m_insert_block->m_index]]);
IncBlockPos(sizeof(void*));
m_block_stack.pop();
return ptr;