mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Avoid doing any re-fetch on beatmap from test scenes
This commit is contained in:
@ -286,11 +286,10 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
if (beatmapInfo?.ID > 0 && previous != null && previous.BeatmapInfo?.ID == beatmapInfo.ID)
|
||||
return previous;
|
||||
|
||||
if (beatmapInfo?.BeatmapSet == null || beatmapInfo == DefaultBeatmap?.BeatmapInfo)
|
||||
return DefaultBeatmap;
|
||||
|
||||
if (beatmapInfo.BeatmapSet.Files == null)
|
||||
if (beatmapInfo.BeatmapSet.Files == null || beatmapInfo.ID == 0)
|
||||
{
|
||||
var info = beatmapInfo;
|
||||
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);
|
||||
|
Reference in New Issue
Block a user