Fix memory allocation for uncompressed bundles inside a multiBundle

This commit is contained in:
VaDiM
2025-09-08 03:06:03 +03:00
parent 553f0d94f3
commit 763f188afb

View File

@ -432,7 +432,7 @@ namespace AssetStudio
byte[] sharedCompressedBuff = null;
byte[] sharedUncompressedBuff = null;
if (blocksCompression != CompressionType.Lzma && blocksCompression != CompressionType.Lzham)
if (blocksCompression > CompressionType.Lzma && blocksCompression != CompressionType.Lzham)
{
sharedCompressedBuff = BigArrayPool<byte>.Shared.Rent(blockSize);
sharedUncompressedBuff = BigArrayPool<byte>.Shared.Rent(blockSize);