Use less DI where we already have access to LadderInfo

This commit is contained in:
Dean Herbert
2019-05-20 14:48:33 +09:00
parent d8ed402779
commit 084c2252cb
2 changed files with 4 additions and 4 deletions

View File

@ -94,10 +94,10 @@ namespace osu.Game.Tournament.Screens.MapPool
}
[BackgroundDependencyLoader]
private void load(LadderInfo ladder, MatchIPCInfo ipc)
private void load(MatchIPCInfo ipc)
{
currentMatch.BindValueChanged(matchChanged);
currentMatch.BindTo(ladder.CurrentMatch);
currentMatch.BindTo(LadderInfo.CurrentMatch);
ipc.Beatmap.BindValueChanged(beatmapChanged);
}