mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-01 07:01:57 +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:
1 parent
12c2629061
commit
73eb76c991
1 file changed
+1
-1
@@ -89,7 +89,7 @@ void* XBlockInputStream::Alloc(const unsigned 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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user