mirror of
https://github.com/ppy/osu
synced 2025-01-19 04:20:59 +00: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…
Reference in New Issue
Block a user