mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
ZoneLoading: Fix InsertPointer not increasing the buffer position by the size of the pointer
This commit is contained in:
parent
236108e5fb
commit
db08cf5ebc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user