mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Fix several cases of incorrect handling of CurrentMatch
nullability
This commit is contained in:
parent
303c70791d
commit
6ef096001e
@ -20,6 +20,6 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
}
|
||||
|
||||
private void matchChanged(ValueChangedEvent<TournamentMatch> match) =>
|
||||
Text.Text = match.NewValue.Round.Value?.Name.Value ?? "Unknown Round";
|
||||
Text.Text = match.NewValue?.Round.Value?.Name.Value ?? "Unknown Round";
|
||||
}
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ namespace osu.Game.Tournament.Screens.Gameplay
|
||||
{
|
||||
if (state.NewValue == TourneyState.Ranking)
|
||||
{
|
||||
if (warmup.Value) return;
|
||||
if (warmup.Value || CurrentMatch.Value == null) return;
|
||||
|
||||
if (ipc.Score1.Value > ipc.Score2.Value)
|
||||
CurrentMatch.Value.Team1Score.Value++;
|
||||
|
Loading…
Reference in New Issue
Block a user