mirror of https://github.com/ppy/osu
Guard against potentially null track if ever
This commit is contained in:
parent
37f44d2e37
commit
b1134c3857
|
@ -144,7 +144,7 @@ private void load(OsuColour colours, OsuConfigManager config)
|
|||
|
||||
// Todo: should probably be done at a DrawableRuleset level to share logic with Player.
|
||||
clock = new EditorClock(playableBeatmap, beatDivisor) { IsCoupled = false };
|
||||
clock.ChangeSource(loadableBeatmap.Track);
|
||||
clock.ChangeSource((IAdjustableClock)loadableBeatmap.Track ?? new StopwatchClock());
|
||||
|
||||
dependencies.CacheAs(clock);
|
||||
AddInternal(clock);
|
||||
|
|
Loading…
Reference in New Issue