Skip to content

Commit

Permalink
fix: broken md3 reading from pk3
Browse files Browse the repository at this point in the history
  • Loading branch information
ovska committed May 2, 2024
1 parent 5ccbba3 commit 6ee4438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pack3r.Core/Parsers/Md3Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial class Md3Parser(ILogger<Md3Parser> logger) : IReferenceParser

await using (var stream = entry.Open())
{
await stream.CopyToAsync(stream, cancellationToken);
await stream.CopyToAsync(memoryStream, cancellationToken);
}

if (!memoryStream.TryGetBuffer(out ArraySegment<byte> buffer))
Expand Down

0 comments on commit 6ee4438

Please sign in to comment.