1
0
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:
Dean Herbert 2023-06-12 17:22:11 +09:00
parent 1626d8d5a5
commit a29f6772cd

View File

@ -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))