1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 09:21:51 +08:00

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
Unverified
parent 4b973dc827
commit 8011048540
+2
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);