1
0
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:
Jamie Taylor 2021-10-06 18:31:56 +09:00
parent bd0c986144
commit 99fb86878e
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -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();
}
}
}