mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08: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