mirror of
https://github.com/osukey/osukey.git
synced 2025-06-06 20:15:29 +09:00
Merge pull request #1511 from peppy/fix-select-no-beatmap
Fix hard crash when clicking play button with no map selected
This commit is contained in:
commit
a3dc39cf4f
@ -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…
x
Reference in New Issue
Block a user