mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:42:58 +08: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()
|
private void applyRateFromMods()
|
||||||
{
|
{
|
||||||
|
if (adjustableSourceClock == null) return;
|
||||||
|
|
||||||
adjustableSourceClock.Rate = 1;
|
adjustableSourceClock.Rate = 1;
|
||||||
foreach (var mod in Beatmap.Value.Mods.Value.OfType<IApplicableToClock>())
|
foreach (var mod in Beatmap.Value.Mods.Value.OfType<IApplicableToClock>())
|
||||||
mod.ApplyToClock(adjustableSourceClock);
|
mod.ApplyToClock(adjustableSourceClock);
|
||||||
|
Loading…
Reference in New Issue
Block a user