Correct wrong logic

`OnlineBeatmapSetID == null` was the problem
This commit is contained in:
ekrctb 2019-01-22 16:40:32 +09:00 committed by GitHub
parent 0095521fc2
commit fe2b83279e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,8 +221,8 @@ namespace osu.Game
return; return;
} }
var databasedSet = var databasedSet = beatmap.OnlineBeatmapSetID != null ?
BeatmapManager.QueryBeatmapSet(s => s.OnlineBeatmapSetID == beatmap.OnlineBeatmapSetID) ?? BeatmapManager.QueryBeatmapSet(s => s.OnlineBeatmapSetID == beatmap.OnlineBeatmapSetID) :
BeatmapManager.QueryBeatmapSet(s => s.Hash == beatmap.Hash); BeatmapManager.QueryBeatmapSet(s => s.Hash == beatmap.Hash);
if (databasedSet != null) if (databasedSet != null)