From 7b70d41a937b4ebd12dd9c04a56f47e0d1efd6d8 Mon Sep 17 00:00:00 2001 From: Xexxar Date: Thu, 19 Aug 2021 14:49:44 +0000 Subject: [PATCH] forgot about the / 0 --- osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs b/osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs index 42f65ce4ed..24de290f1f 100644 --- a/osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs +++ b/osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs @@ -173,6 +173,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty { int amountHitObjectsWithAccuracy = Attributes.HitCircleCount; + if (amountHitObjectsWithAccuracy == 0) + return 0; + // This section should be documented by Tr3, but effectively we're calculating the exact same way as before, but // we calculate a variance based on the object count and # of 50s, 100s, etc. This prevents us from having cases // where an SS on lower OD is actually worth more than a 95% on OD11, even though the OD11 requires a greater