Merge pull request #23889 from peppy/fix-null-storyboard

Fix storyboard being null if file doesn't exist
This commit is contained in:
Bartłomiej Dach 2023-06-12 23:16:02 +02:00 committed by GitHub
commit 422216aa4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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