Update the length once during construction

This commit is contained in:
smoogipoo 2018-06-27 16:12:49 +09:00
parent b4b28f8ae8
commit 5640385f48

View File

@ -9,6 +9,9 @@ namespace osu.Game.Beatmaps
{
public partial class WorkingBeatmap
{
/// <summary>
/// A type of <see cref="TrackVirtual"/> which provides a valid length based on the <see cref="HitObject"/>s of an <see cref="IBeatmap"/>.
/// </summary>
private class VirtualBeatmapTrack : TrackVirtual
{
private readonly IBeatmap beatmap;
@ -16,6 +19,7 @@ namespace osu.Game.Beatmaps
public VirtualBeatmapTrack(IBeatmap beatmap)
{
this.beatmap = beatmap;
updateVirtualLength();
}
protected override void UpdateState()