mirror of
https://github.com/ppy/osu.git
synced 2025-03-14 06:27:19 +08:00
Fix storyboard being null if file doesn't exist
It's expected that `WorkingBeatmap.Storyboard` is non-null. An example fail case is in `BeatmapBackgroundWithStoryboard.load`.
This commit is contained in:
parent
1626d8d5a5
commit
a29f6772cd
@ -264,7 +264,7 @@ namespace osu.Game.Beatmaps
|
||||
if (beatmapFileStream == null)
|
||||
{
|
||||
Logger.Log($"Beatmap failed to load (file {BeatmapInfo.Path} not found on disk at expected location {fileStorePath})", level: LogLevel.Error);
|
||||
return null;
|
||||
return new Storyboard();
|
||||
}
|
||||
|
||||
using (var reader = new LineBufferedReader(beatmapFileStream))
|
||||
|
Loading…
x
Reference in New Issue
Block a user