(BMZ): pass seekable stream to base.Read method.

This commit is contained in:
morkt 2016-07-26 07:05:51 +04:00
parent 5a858cf42d
commit 105a2ab968

View File

@ -67,7 +67,8 @@ namespace GameRes.Formats.BlackRainbow
{
stream.Seek (8, SeekOrigin.Current);
using (var zstream = new ZLibStream (stream, CompressionMode.Decompress, true))
return base.Read (zstream, info);
using (var input = new SeekableStream (zstream))
return base.Read (input, info);
}
}
}