Fix tournament crashing when osu!(stable) is at ranking screen at startup

This commit is contained in:
Dean Herbert 2021-08-28 14:15:42 +09:00
parent 7fbeb9ecc7
commit e9b97f7937

View File

@ -124,9 +124,6 @@ namespace osu.Game.Tournament.Screens.Gameplay
}
});
State.BindTo(ipc.State);
State.BindValueChanged(stateChanged, true);
ladder.ChromaKeyWidth.BindValueChanged(width => chroma.Width = width.NewValue, true);
warmup.BindValueChanged(w =>
@ -136,6 +133,14 @@ namespace osu.Game.Tournament.Screens.Gameplay
}, true);
}
protected override void LoadComplete()
{
base.LoadComplete();
State.BindTo(ipc.State);
State.BindValueChanged(stateChanged, true);
}
protected override void CurrentMatchChanged(ValueChangedEvent<TournamentMatch> match)
{
base.CurrentMatchChanged(match);