From dd7026f7c71e422e775d73f06e0ec9de145ba7f5 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 26 Mar 2025 19:40:19 +0900 Subject: [PATCH] Fix test failures due to `StoryboarVideo` having a weird initialisation flow --- osu.Game/Storyboards/StoryboardSprite.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Storyboards/StoryboardSprite.cs b/osu.Game/Storyboards/StoryboardSprite.cs index 968c2be929..49fa5d85c3 100644 --- a/osu.Game/Storyboards/StoryboardSprite.cs +++ b/osu.Game/Storyboards/StoryboardSprite.cs @@ -59,8 +59,8 @@ namespace osu.Game.Storyboards var firstAlpha = alphaCommands.MinBy(c => c.StartTime); var firstRealAlpha = alphaCommands.Where(visibleAtStartOrEnd).MinBy(c => c.StartTime); - if (firstAlpha!.StartValue == 0) - return firstRealAlpha!.StartTime; + if (firstAlpha!.StartValue == 0 && firstRealAlpha != null) + return firstRealAlpha.StartTime; } return EarliestTransformTime;