From 3619f7c1ebc926f9b59fc79607aa46cb2c980106 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Wed, 13 Sep 2017 00:38:52 +0900 Subject: [PATCH] Fix possible NaN accuracy --- osu.Game/Rulesets/Scoring/ScoreProcessor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/Rulesets/Scoring/ScoreProcessor.cs b/osu.Game/Rulesets/Scoring/ScoreProcessor.cs index 5d31ee9729..448cb56e0c 100644 --- a/osu.Game/Rulesets/Scoring/ScoreProcessor.cs +++ b/osu.Game/Rulesets/Scoring/ScoreProcessor.cs @@ -225,7 +225,8 @@ namespace osu.Game.Rulesets.Scoring if (judgement.AffectsAccuracy) Hits++; - Accuracy.Value = comboScore / rollingMaxComboScore; + if (rollingMaxComboScore != 0) + Accuracy.Value = comboScore / rollingMaxComboScore; switch (Mode.Value) {