mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Only detach filter on disposal if attached
This commit is contained in:
parent
bd0c986144
commit
99fb86878e
@ -118,7 +118,9 @@ namespace osu.Game.Audio.Effects
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
detachFilter();
|
||||
|
||||
if (mixer.Effects.Contains(filter))
|
||||
detachFilter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user