Fix hard crash when clicking play button with no map selected

Resolves #1507.
This commit is contained in:
Dean Herbert 2017-11-15 20:03:18 +09:00
parent 4b973dc827
commit 8011048540

View File

@ -231,6 +231,8 @@ namespace osu.Game.Screens.Play
private void applyRateFromMods()
{
if (adjustableSourceClock == null) return;
adjustableSourceClock.Rate = 1;
foreach (var mod in Beatmap.Value.Mods.Value.OfType<IApplicableToClock>())
mod.ApplyToClock(adjustableSourceClock);