From 801104854092a5677e4531e7fb514b98801ee8c1 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 15 Nov 2017 20:03:18 +0900 Subject: [PATCH] Fix hard crash when clicking play button with no map selected Resolves #1507. --- osu.Game/Screens/Play/Player.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index 675d20fe63..3e57e18963 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -231,6 +231,8 @@ private void load(AudioManager audio, OsuConfigManager config, APIAccess api) private void applyRateFromMods() { + if (adjustableSourceClock == null) return; + adjustableSourceClock.Rate = 1; foreach (var mod in Beatmap.Value.Mods.Value.OfType()) mod.ApplyToClock(adjustableSourceClock);