Fix: Decompress ZLIB correctly

This commit fixes an issue where the ZLIB decompression was not being performed correctly after stripping hash blocks. The corrected code ensures that the decompressed data is properly handled.
This commit is contained in:
njohnson 2025-09-10 21:55:16 -04:00
parent a3769f0bad
commit 15ff5e65b1

View File

@ -83,7 +83,7 @@ bool FastFile_COD6_360::Load(const QByteArray aData) {
if (decompressedData.isEmpty() || decompressedData.size() < 1024)
{
QByteArray stripped = Compression::StripHashBlocks(compressed);
QByteArray retry = Compression::DecompressZLIB(stripped);
QByteArray retry = Compression::DecompressZLIB(stripped);
if (!retry.isEmpty())
decompressedData.swap(retry);
}