mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fix several cases of incorrect handling of CurrentMatch
nullability
This commit is contained in:
@ -20,6 +20,6 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void matchChanged(ValueChangedEvent<TournamentMatch> match) =>
|
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 (state.NewValue == TourneyState.Ranking)
|
||||||
{
|
{
|
||||||
if (warmup.Value) return;
|
if (warmup.Value || CurrentMatch.Value == null) return;
|
||||||
|
|
||||||
if (ipc.Score1.Value > ipc.Score2.Value)
|
if (ipc.Score1.Value > ipc.Score2.Value)
|
||||||
CurrentMatch.Value.Team1Score.Value++;
|
CurrentMatch.Value.Team1Score.Value++;
|
||||||
|
Reference in New Issue
Block a user