1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 08:53:17 +08:00

Fix group start/end time not calculating correctly

This commit is contained in:
Salman Ahmed 2024-03-08 01:59:26 +03:00
parent 585ab59768
commit 9b77d8c972

View File

@ -30,13 +30,13 @@ namespace osu.Game.Storyboards.Commands
/// Returns the earliest start time of the commands added to this group.
/// </summary>
[JsonIgnore]
public double StartTime { get; private set; }
public double StartTime { get; private set; } = double.MaxValue;
/// <summary>
/// Returns the latest end time of the commands added to this group.
/// </summary>
[JsonIgnore]
public double EndTime { get; private set; }
public double EndTime { get; private set; } = double.MinValue;
[JsonIgnore]
public double Duration => EndTime - StartTime;