1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Fix exception with no matching mods

This commit is contained in:
Dan Balasescu 2023-06-15 19:55:51 +09:00
parent 0844a21a51
commit 975e9baf43

View File

@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Mania.Difficulty
{
double multiplier = mods.Where(m => m is not (ModHidden or ModHardRock or ModDoubleTime or ModFlashlight or ManiaModFadeIn))
.Select(m => m.ScoreMultiplier)
.Aggregate((c, n) => c * n);
.Aggregate(1.0, (c, n) => c * n);
TotalScore = (int)(1000000 * multiplier);
}