mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Only overflow block when align goes over block boundary instead of only hit it because load can be 0
This commit is contained in:
parent
12c2629061
commit
73eb76c991
@ -89,7 +89,7 @@ void* XBlockInputStream::Alloc(const unsigned align)
|
|||||||
|
|
||||||
Align(align);
|
Align(align);
|
||||||
|
|
||||||
if (m_block_offsets[block->m_index] >= block->m_buffer_size)
|
if (m_block_offsets[block->m_index] > block->m_buffer_size)
|
||||||
{
|
{
|
||||||
throw BlockOverflowException(block);
|
throw BlockOverflowException(block);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user