1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-08 22:04:47 +08:00

Fix test failures due to StoryboarVideo having a weird initialisation flow

This commit is contained in:
Dean Herbert
2025-03-26 19:40:19 +09:00
Unverified
parent 203e294e49
commit dd7026f7c7
+2 -2
View File
@@ -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;