mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Add non-null assertion to FrameStabilityContainer
This commit is contained in:
parent
58146598c8
commit
95c1b488a7
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
@ -129,6 +130,8 @@ namespace osu.Game.Rulesets.UI
|
|||||||
if (parentGameplayClock == null)
|
if (parentGameplayClock == null)
|
||||||
setClock(); // LoadComplete may not be run yet, but we still want the clock.
|
setClock(); // LoadComplete may not be run yet, but we still want the clock.
|
||||||
|
|
||||||
|
Debug.Assert(parentGameplayClock != null);
|
||||||
|
|
||||||
double proposedTime = parentGameplayClock.CurrentTime;
|
double proposedTime = parentGameplayClock.CurrentTime;
|
||||||
|
|
||||||
if (FrameStablePlayback)
|
if (FrameStablePlayback)
|
||||||
|
Loading…
Reference in New Issue
Block a user