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.
  • Loading branch information
halgari committed Jan 15, 2024
1 parent ab12bad commit 141bea5
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 141bea5

Please sign in to comment.