mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Guard against potentially null track if ever
This commit is contained in:
@ -144,7 +144,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(loadableBeatmap.Track);
|
clock.ChangeSource((IAdjustableClock)loadableBeatmap.Track ?? new StopwatchClock());
|
||||||
|
|
||||||
dependencies.CacheAs(clock);
|
dependencies.CacheAs(clock);
|
||||||
AddInternal(clock);
|
AddInternal(clock);
|
||||||
|
Reference in New Issue
Block a user