1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:17:27 +08:00

Fix error on plays with no hitEvents

This commit is contained in:
Nathen 2024-02-22 11:02:42 -05:00
parent d87932a875
commit 636a708448

View File

@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Osu.Scoring
{
IEnumerable<HitEvent> hitCircleEvents = hitEvents.Where(e => e.HitObject is HitCircle && !(e.HitObject is SliderTailCircle)).ToList();
Vector2 averageHitError = hitCircleEvents.CalculateAverageAimError()!.Value;
Vector2? averageHitError = hitCircleEvents.CalculateAverageAimError();
int eventCount = 0;
double varianceSum = 0;