From 636a708448d85c7a041dad3f4b3f1b4df7ce4558 Mon Sep 17 00:00:00 2001 From: Nathen Date: Thu, 22 Feb 2024 11:02:42 -0500 Subject: [PATCH] Fix error on plays with no hitEvents --- osu.Game.Rulesets.Osu/Scoring/OsuHitEventExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/Scoring/OsuHitEventExtensions.cs b/osu.Game.Rulesets.Osu/Scoring/OsuHitEventExtensions.cs index 2439007931..7dd285e06f 100644 --- a/osu.Game.Rulesets.Osu/Scoring/OsuHitEventExtensions.cs +++ b/osu.Game.Rulesets.Osu/Scoring/OsuHitEventExtensions.cs @@ -16,7 +16,7 @@ namespace osu.Game.Rulesets.Osu.Scoring { IEnumerable 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;