Fix incorrect invocation of download method in SoloSpectator

This commit is contained in:
Dean Herbert 2021-11-04 13:50:04 +09:00
parent 0ab50f1cc9
commit 0df339d0b8

View File

@ -240,13 +240,10 @@ namespace osu.Game.Screens.Play
if (!automaticDownload.Current.Value)
return;
// Used to interact with manager classes that don't support interface types. Will eventually be replaced.
var beatmapSetInfo = new BeatmapSetInfo { OnlineBeatmapSetID = beatmapSet.OnlineID };
if (beatmaps.IsAvailableLocally(beatmapSetInfo))
if (beatmaps.IsAvailableLocally(new BeatmapSetInfo { OnlineBeatmapSetID = beatmapSet.OnlineID }))
return;
beatmaps.Download(beatmapSetInfo);
beatmaps.Download(beatmapSet);
}
public override bool OnExiting(IScreen next)