Fix potential null referenced in SeedingScreen

Also ensure that any update operations only occur when the seeding
screen is displayed. They were running in the background until now.
This commit is contained in:
Dean Herbert
2022-07-13 18:09:54 +09:00
parent b9ad90ce54
commit 4dff999ce6
2 changed files with 11 additions and 6 deletions

View File

@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using Newtonsoft.Json;
using osu.Framework.Bindables;
@ -13,7 +11,7 @@ namespace osu.Game.Tournament.Models
public int ID;
[JsonProperty("BeatmapInfo")]
public TournamentBeatmap Beatmap;
public TournamentBeatmap? Beatmap;
public long Score;