Remove LadderInfo requirement in DrawableMatchTeam

This commit is contained in:
Dean Herbert 2020-03-08 19:41:22 +09:00
parent 1c5d6e0cf4
commit 2fe32b7d2b
1 changed files with 3 additions and 1 deletions

View File

@ -37,11 +37,13 @@ public class DrawableMatchTeam : DrawableTournamentTeam, IHasContextMenu
private readonly Func<bool> isWinner;
private LadderEditorScreen ladderEditor;
[Resolved]
[Resolved(canBeNull: true)]
private LadderInfo ladderInfo { get; set; }
private void setCurrent()
{
if (ladderInfo == null) return;
//todo: tournamentgamebase?
if (ladderInfo.CurrentMatch.Value != null)
ladderInfo.CurrentMatch.Value.Current.Value = false;