mirror of https://github.com/ppy/osu
Revert "Guard against potentially null track if ever"
This reverts commit b1134c3857
.
This commit is contained in:
parent
7c4e54a1d4
commit
fc2a527e9d
|
@ -17,7 +17,6 @@
|
|||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Framework.Timing;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Graphics;
|
||||
|
@ -144,7 +143,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((IAdjustableClock)loadableBeatmap.Track ?? new StopwatchClock());
|
||||
clock.ChangeSource(loadableBeatmap.Track);
|
||||
|
||||
dependencies.CacheAs(clock);
|
||||
AddInternal(clock);
|
||||
|
|
Loading…
Reference in New Issue