From d75e439f94c95b076e98c387c9c92ab13efee4b1 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Thu, 20 Jul 2017 01:27:27 +0930 Subject: [PATCH] Fix Player crashing due to null BeatmapInfo (now unused). --- osu.Game/Screens/Play/Player.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index 7bd310e168..4b04b3b2ea 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -35,8 +35,6 @@ namespace osu.Game.Screens.Play internal override bool HasLocalCursorDisplayed => !pauseContainer.IsPaused && !HasFailed && HitRenderer.ProvidingUserCursor; - public BeatmapInfo BeatmapInfo; - public Action RestartRequested; internal override bool AllowBeatmapRulesetChange => false; @@ -85,7 +83,7 @@ namespace osu.Game.Screens.Play { if (!Beatmap.Value.WithStoryboard) // we need to ensure the storyboard is loaded. - Beatmap.Value = beatmaps.GetWorkingBeatmap(BeatmapInfo, withStoryboard: true); + Beatmap.Value = beatmaps.GetWorkingBeatmap(Beatmap.Value.BeatmapInfo, withStoryboard: true); if (Beatmap.Value.Beatmap == null) throw new InvalidOperationException("Beatmap was not loaded");