1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 06:27:18 +08:00

Merge pull request #5832 from peppy/fix-beatmap-skin-parse-fail

Don't return DefaultSkin on beatmap skin parsing failure
This commit is contained in:
Dan Balasescu 2019-08-26 16:52:10 +09:00 committed by GitHub
commit 7dbd54f611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,19 +138,15 @@ namespace osu.Game.Beatmaps
protected override Skin GetSkin()
{
Skin skin;
try
{
skin = new LegacyBeatmapSkin(BeatmapInfo, store, AudioManager);
return new LegacyBeatmapSkin(BeatmapInfo, store, AudioManager);
}
catch (Exception e)
{
Logger.Error(e, "Skin failed to load");
skin = new DefaultSkin();
return null;
}
return skin;
}
}
}