1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:32:55 +08:00

identified case with spinner where / 0 could theoretically be possible

This commit is contained in:
Xexxar 2021-10-21 17:21:34 +00:00
parent cb605f9156
commit d6aa2fe6e4

View File

@ -32,7 +32,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
private double strainValueOf(DifficultyHitObject current)
{
if (current.BaseObject is Spinner || Previous.Count <= 1)
if (current.BaseObject is Spinner || Previous.Count <= 1 || Previous[0].BaseObject is Spinner)
return 0;
var osuCurrObj = (OsuDifficultyHitObject)current;