mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Fix hard crash when clicking play button with no map selected
Resolves #1507.
This commit is contained in:
parent
4b973dc827
commit
8011048540
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user