mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -05:00
Fix a bug in the bundle block reader. Close #119
This commit is contained in:
@@ -432,7 +432,8 @@ namespace AssetStudio
|
|||||||
byte[] sharedUncompressedBuff = null;
|
byte[] sharedUncompressedBuff = null;
|
||||||
if (blocksCompression > CompressionType.Lzma && blocksCompression != CompressionType.Lzham)
|
if (blocksCompression > CompressionType.Lzma && blocksCompression != CompressionType.Lzham)
|
||||||
{
|
{
|
||||||
sharedCompressedBuff = BigArrayPool<byte>.Shared.Rent(blockSize);
|
var maxCompressedSize = (int)m_BlocksInfo.Max(x => x.compressedSize);
|
||||||
|
sharedCompressedBuff = BigArrayPool<byte>.Shared.Rent(maxCompressedSize);
|
||||||
sharedUncompressedBuff = BigArrayPool<byte>.Shared.Rent(blockSize);
|
sharedUncompressedBuff = BigArrayPool<byte>.Shared.Rent(blockSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user