mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:02:55 +08:00
Fix completely wrong conditional logic
This commit is contained in:
parent
330d61862d
commit
ee5eb9576f
@ -293,11 +293,9 @@ namespace osu.Game.Beatmaps
|
||||
if (beatmapInfo?.BeatmapSet == null || beatmapInfo == DefaultBeatmap?.BeatmapInfo)
|
||||
return DefaultBeatmap;
|
||||
|
||||
// files may be null in some tests.
|
||||
if (beatmapInfo.BeatmapSet?.Files == null)
|
||||
return DefaultBeatmap;
|
||||
|
||||
if (beatmapInfo.BeatmapSet.Files.Count == 0)
|
||||
// force a re-query if files are not in a state which looks like the model has
|
||||
// full database information present.
|
||||
if (beatmapInfo.BeatmapSet.Files == null || beatmapInfo.BeatmapSet.Files.Count == 0)
|
||||
{
|
||||
var info = beatmapInfo;
|
||||
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);
|
||||
|
Loading…
Reference in New Issue
Block a user