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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user