Fix incorrect comparison in line updating logic

This commit is contained in:
Dean Herbert
2019-07-15 15:53:19 +09:00
parent d0c8aaba4e
commit d4c1005c7e
3 changed files with 3 additions and 3 deletions

View File

@ -248,7 +248,7 @@ namespace osu.Game
}
// Use first beatmap available for current ruleset, else switch ruleset.
var first = databasedSet.Beatmaps.Find(b => b.Ruleset == Ruleset.Value) ?? databasedSet.Beatmaps.First();
var first = databasedSet.Beatmaps.Find(b => b.Ruleset.Equals(Ruleset.Value)) ?? databasedSet.Beatmaps.First();
Ruleset.Value = first.Ruleset;
Beatmap.Value = BeatmapManager.GetWorkingBeatmap(first);