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:
parent
9a66d766e9
commit
9426629853
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user