From e30ddccbc177a226119fb8f44121996b93a0a1b9 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Thu, 24 Dec 2020 22:19:36 +0900 Subject: [PATCH] Fix compile error. --- .../Objects/Drawables/DrawableBarLine.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/Objects/Drawables/DrawableBarLine.cs b/osu.Game.Rulesets.Karaoke/Objects/Drawables/DrawableBarLine.cs index 84de39482..ad1b619b5 100644 --- a/osu.Game.Rulesets.Karaoke/Objects/Drawables/DrawableBarLine.cs +++ b/osu.Game.Rulesets.Karaoke/Objects/Drawables/DrawableBarLine.cs @@ -31,7 +31,7 @@ public class DrawableBarLine : DrawableKaraokeScrollingHitObject /// /// The visual line tracker. /// - private Container line; + private Box line; /// /// Container with triangles. Only visible for major lines. @@ -58,7 +58,7 @@ private void load() AddRangeInternal(new Drawable[] { - new Box + line = new Box { Name = "Bar line", Anchor = Anchor.CentreLeft, @@ -99,7 +99,7 @@ private void load() protected override void LoadComplete() { base.LoadComplete(); - major.BindValueChanged(updateMajor); + major.BindValueChanged(updateMajor, true); } private void updateMajor(ValueChangedEvent major)