mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 09:53:18 +08:00
Don't return DefaultSkin on beatmap skin parsing failure
This commit is contained in:
parent
7fd63b39fe
commit
289bd8e6b0
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user