mirror of
https://github.com/ppy/osu.git
synced 2026-05-20 01:59:54 +08:00
Merge pull request #24846 from bdach/get-reader-regression
Fix `MemoryStreamArchiveReader.GetStream()` failing in some cases
This commit is contained in:
@@ -19,7 +19,7 @@ namespace osu.Game.IO.Archives
|
||||
this.stream = stream;
|
||||
}
|
||||
|
||||
public override Stream GetStream(string name) => new MemoryStream(stream.GetBuffer(), 0, (int)stream.Length);
|
||||
public override Stream GetStream(string name) => new MemoryStream(stream.ToArray(), 0, (int)stream.Length);
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user