1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 21:23:04 +08:00

Revert incorrectly changed requery code

This commit is contained in:
Dean Herbert 2021-05-20 15:41:58 +09:00
parent dbfaaecd9c
commit 7980bdd384

View File

@ -286,10 +286,11 @@ 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 || beatmapInfo.ID == 0)
if (beatmapInfo.BeatmapSet.Files == null)
{
var info = beatmapInfo;
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);