mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 02:13:22 +08:00
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.Bindings;
|
|||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
using osu.Framework.Screens;
|
using osu.Framework.Screens;
|
||||||
using osu.Framework.Timing;
|
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
@ -144,7 +143,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
|
|
||||||
// Todo: should probably be done at a DrawableRuleset level to share logic with Player.
|
// Todo: should probably be done at a DrawableRuleset level to share logic with Player.
|
||||||
clock = new EditorClock(playableBeatmap, beatDivisor) { IsCoupled = false };
|
clock = new EditorClock(playableBeatmap, beatDivisor) { IsCoupled = false };
|
||||||
clock.ChangeSource((IAdjustableClock)loadableBeatmap.Track ?? new StopwatchClock());
|
clock.ChangeSource(loadableBeatmap.Track);
|
||||||
|
|
||||||
dependencies.CacheAs(clock);
|
dependencies.CacheAs(clock);
|
||||||
AddInternal(clock);
|
AddInternal(clock);
|
||||||
|
Loading…
Reference in New Issue
Block a user