mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 10:43:22 +08:00
Add extra safeties against null ref when rulesets are missing
This commit is contained in:
parent
1fcd953e4a
commit
d897a31f0c
@ -27,7 +27,7 @@ namespace osu.Game.Seasonal
|
||||
{
|
||||
private IBindable<WorkingBeatmap> working = null!;
|
||||
|
||||
private InterpolatingFramedClock beatmapClock = null!;
|
||||
private InterpolatingFramedClock? beatmapClock;
|
||||
|
||||
private List<HitObject> hitObjects = null!;
|
||||
|
||||
@ -82,6 +82,9 @@ namespace osu.Game.Seasonal
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (osuRuleset == null || beatmapClock == null)
|
||||
return;
|
||||
|
||||
Height = DrawWidth / 16 * 10;
|
||||
|
||||
beatmapClock.ProcessFrame();
|
||||
|
Loading…
Reference in New Issue
Block a user