From cb664dd183e3c111edd4a10fc2221614ea44c946 Mon Sep 17 00:00:00 2001 From: HoLLy Date: Sun, 12 May 2019 22:08:47 +0200 Subject: [PATCH] Change OfType<> to Cast<> to be more clear --- osu.Game.Rulesets.Catch/Difficulty/CatchDifficultyCalculator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Catch/Difficulty/CatchDifficultyCalculator.cs b/osu.Game.Rulesets.Catch/Difficulty/CatchDifficultyCalculator.cs index f24e67366a..d6a1ed632b 100644 --- a/osu.Game.Rulesets.Catch/Difficulty/CatchDifficultyCalculator.cs +++ b/osu.Game.Rulesets.Catch/Difficulty/CatchDifficultyCalculator.cs @@ -60,7 +60,7 @@ protected override IEnumerable CreateDifficultyHitObjects(I // In 2B beatmaps, it is possible that a normal Fruit is placed in the middle of a JuiceStream. foreach (var hitObject in beatmap.HitObjects .SelectMany(obj => obj is JuiceStream stream ? stream.NestedHitObjects : new[] { obj }) - .OfType() + .Cast() .OrderBy(x => x.StartTime)) { // We want to only consider fruits that contribute to the combo.