1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Null track handling in player

This commit is contained in:
DrabWeb 2017-03-23 23:57:33 -03:00
parent befbc63c35
commit f1f6f2041f

View File

@ -139,7 +139,7 @@ namespace osu.Game.Screens.Play
hitRenderer.InputManager.ReplayInputHandler = ReplayInputHandler;
hudOverlay.BindHitRenderer(hitRenderer);
hudOverlay.Progress.Length = Beatmap.Track.Length;
hudOverlay.Progress.Length = Beatmap?.Track?.Length ?? 0;
//bind HitRenderer to ScoreProcessor and ourselves (for a pass situation)
hitRenderer.OnAllJudged += onCompletion;