From f16f27a22b481965280e3b8b00f9fec53bc39c6b Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Mon, 15 Jan 2024 16:35:23 -0700 Subject: [PATCH] Not sure why this code has been here forever, but it was wrong. If the compressed file was exact the same size as the extracted file then we'd never extract it? Why? IDK, it's bad, and I should feel bad. (#2487) --- Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs b/Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs index 476660f0..ad936e0f 100644 --- a/Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs +++ b/Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs @@ -91,7 +91,7 @@ public class FileRecord : IFile if (BSA.HeaderType == VersionType.SSE) { - if (Compressed && size.Size != size.OnDisk) + if (Compressed) { await using var r = LZ4Stream.Decode(rdr.BaseStream); await r.CopyToLimitAsync(output, (int) size.Original, token).ConfigureAwait(false);