Fix crash on exiting song select with ctrl-enter autoplay

This commit is contained in:
Dean Herbert
2020-02-03 16:04:32 +09:00
parent c5422743e2
commit 9183c78319
2 changed files with 28 additions and 3 deletions

View File

@ -33,6 +33,8 @@ namespace osu.Game.Screens.Select
public override void OnResuming(IScreen last)
{
base.OnResuming(last);
player = null;
if (removeAutoModOnResume)
@ -41,8 +43,6 @@ namespace osu.Game.Screens.Select
ModSelect.DeselectTypes(new[] { autoType }, true);
removeAutoModOnResume = false;
}
base.OnResuming(last);
}
protected override bool OnStart()