fix skin using wrong stream

This commit is contained in:
OliBomby 2023-07-18 13:08:05 +02:00
parent 63dd8bd991
commit e7a9175aea

View File

@ -44,7 +44,11 @@ namespace osu.Game.Database
var beatmapContent = new LegacyBeatmapDecoder().Decode(contentStreamReader);
using var skinStream = base.GetFileContents(model, file);
using var skinStreamReader = new LineBufferedReader(contentStream);
if (skinStream == null)
return null;
using var skinStreamReader = new LineBufferedReader(skinStream);
var beatmapSkin = new LegacySkin(new SkinInfo(), null!)
{
Configuration = new LegacySkinDecoder().Decode(skinStreamReader)