1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

Don't crash if you leave and return to song select

During visual tests
This commit is contained in:
Drew DeVault 2016-10-14 10:47:44 -04:00
parent 9a66d766e9
commit 9426629853

View File

@ -126,8 +126,8 @@ namespace osu.Game.GameModes.Play
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
playMode.ValueChanged -= PlayMode_ValueChanged;
if (playMode != null)
playMode.ValueChanged -= PlayMode_ValueChanged;
}
private void PlayMode_ValueChanged(object sender, EventArgs e)