mirror of
https://github.com/ppy/osu.git
synced 2025-03-21 15:47:19 +08:00
Add fallback to allow FilterCriteria to run without a ruleset being set.
This commit is contained in:
parent
5939ba9143
commit
8ef675d9b3
@ -23,7 +23,7 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
var set = g.BeatmapSet;
|
||||
|
||||
bool hasCurrentMode = set.Beatmaps.Any(bm => bm.RulesetID == Ruleset.ID);
|
||||
bool hasCurrentMode = set.Beatmaps.Any(bm => bm.RulesetID == (Ruleset?.ID ?? 0));
|
||||
|
||||
bool match = hasCurrentMode;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user