mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
Return default beatmap if local beatmap can't be retrieved
This commit is contained in:
parent
ff2f3a8484
commit
6afd6efdeb
@ -240,6 +240,9 @@ namespace osu.Game.Beatmaps
|
||||
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);
|
||||
}
|
||||
|
||||
if (beatmapInfo == null)
|
||||
return DefaultBeatmap;
|
||||
|
||||
lock (workingCache)
|
||||
{
|
||||
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == beatmapInfo.ID);
|
||||
|
Loading…
Reference in New Issue
Block a user