mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 01:27:20 +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)
|
if (beatmapFileStream == null)
|
||||||
{
|
{
|
||||||
Logger.Log($"Beatmap failed to load (file {BeatmapInfo.Path} not found on disk at expected location {fileStorePath})", level: LogLevel.Error);
|
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))
|
using (var reader = new LineBufferedReader(beatmapFileStream))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user