Skip to content

Commit

Permalink
Not sure why this code has been here forever, but it was wrong. If th…
Browse files Browse the repository at this point in the history
…e 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)
  • Loading branch information
halgari authored Jan 15, 2024
1 parent ab12bad commit f16f27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wabbajack.Compression.BSA/TES5Archive/FileRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public async ValueTask CopyDataTo(Stream output, CancellationToken token)

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);
Expand Down

0 comments on commit f16f27a

Please sign in to comment.