1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 22:27:25 +08:00

Don't set lifetime until LoadComplete (fixes possible clock nullref if added without a clock).

This commit is contained in:
smoogipooo 2017-03-23 11:05:58 +09:00
parent 39134d79a8
commit 5daa574551

View File

@ -16,9 +16,14 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
Origin = Anchor.Centre;
RelativePositionAxes = Axes.X;
}
protected override void LoadComplete()
{
LifetimeStart = HitObject.StartTime - HitObject.PreEmpt * 2;
LifetimeEnd = HitObject.StartTime + HitObject.PreEmpt;
base.LoadComplete();
}
protected override TaikoJudgementInfo CreateJudgementInfo() => new TaikoJudgementInfo();