Revert "Guard against potentially null track if ever"

This reverts commit b1134c3857.
This commit is contained in:
Salman Ahmed 2021-05-07 09:54:58 +03:00
parent 7c4e54a1d4
commit fc2a527e9d
1 changed files with 1 additions and 2 deletions

View File

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