mirror of https://github.com/ppy/osu
Rectify null value call
tired programming is never a good idea
This commit is contained in:
parent
c7ec95c0d0
commit
db6abd86f0
|
@ -28,7 +28,7 @@ public double StrainValueOf(DifficultyHitObject current)
|
|||
}
|
||||
|
||||
double objectStrain = 0.5;
|
||||
objectStrain += speedBonus(current.StartTime - previousHitTime);
|
||||
objectStrain += speedBonus(current.StartTime - previousHitTime.Value);
|
||||
previousHitTime = current.StartTime;
|
||||
return objectStrain;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue