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:
Dean Herbert 2017-11-16 00:38:41 +09:00 committed by GitHub
commit a3dc39cf4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ private void load(AudioManager audio, OsuConfigManager config, APIAccess api)
private void applyRateFromMods()
{
if (adjustableSourceClock == null) return;
adjustableSourceClock.Rate = 1;
foreach (var mod in Beatmap.Value.Mods.Value.OfType<IApplicableToClock>())
mod.ApplyToClock(adjustableSourceClock);