mirror of
https://github.com/ppy/osu.git
synced 2025-01-16 13:32:54 +08:00
Don't set lifetime until LoadComplete (fixes possible clock nullref if added without a clock).
This commit is contained in:
parent
39134d79a8
commit
5daa574551
@ -16,9 +16,14 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
|
|||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
|
|
||||||
RelativePositionAxes = Axes.X;
|
RelativePositionAxes = Axes.X;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
LifetimeStart = HitObject.StartTime - HitObject.PreEmpt * 2;
|
LifetimeStart = HitObject.StartTime - HitObject.PreEmpt * 2;
|
||||||
LifetimeEnd = HitObject.StartTime + HitObject.PreEmpt;
|
LifetimeEnd = HitObject.StartTime + HitObject.PreEmpt;
|
||||||
|
|
||||||
|
base.LoadComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override TaikoJudgementInfo CreateJudgementInfo() => new TaikoJudgementInfo();
|
protected override TaikoJudgementInfo CreateJudgementInfo() => new TaikoJudgementInfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user