mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:57:24 +08:00
Fix even more missed nullability-related inspections
This commit is contained in:
parent
1e9b927b50
commit
3c923b9e81
@ -30,7 +30,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
|
|
||||||
private Box flash = null!;
|
private Box flash = null!;
|
||||||
|
|
||||||
public TournamentBeatmapPanel(TournamentBeatmap beatmap, string mod = "")
|
public TournamentBeatmapPanel(TournamentBeatmap? beatmap, string mod = "")
|
||||||
{
|
{
|
||||||
Beatmap = beatmap;
|
Beatmap = beatmap;
|
||||||
this.mod = mod;
|
this.mod = mod;
|
||||||
|
@ -195,7 +195,7 @@ namespace osu.Game.Tournament.Screens.MapPool
|
|||||||
if (CurrentMatch.Value == null)
|
if (CurrentMatch.Value == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (CurrentMatch.Value.Round.Value.Beatmaps.All(b => b.Beatmap.OnlineID != beatmapId))
|
if (CurrentMatch.Value.Round.Value.Beatmaps.All(b => b.Beatmap?.OnlineID != beatmapId))
|
||||||
// don't attempt to add if the beatmap isn't in our pool
|
// don't attempt to add if the beatmap isn't in our pool
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user