1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 15:52:55 +08:00

Use correct operation for 0 difficulty case

This commit is contained in:
js1086 2024-05-26 14:21:47 +01:00
parent 61afda1089
commit c25e1bdeb5

View File

@ -77,7 +77,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
/// </summary>
public double CountDifficultStrains()
{
if (double.IsNaN(Difficulty))
if (Difficulty == 0)
return 0.0;
double consistentTopStrain = Difficulty / 10; // What would the top strain be if all strain values were identical