1
0
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:
Dean Herbert 2024-12-21 20:30:00 +09:00
parent 1fcd953e4a
commit d897a31f0c
No known key found for this signature in database

View File

@ -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();