Fix possible NaN accuracy

This commit is contained in:
smoogipooo 2017-09-13 00:38:52 +09:00
parent 3386dbb243
commit 3619f7c1eb

View File

@ -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)
{