mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Fix possible NaN accuracy
This commit is contained in:
parent
3386dbb243
commit
3619f7c1eb
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user