1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Fix SourceChanged unbind directionality and add null check

This commit is contained in:
Dean Herbert 2022-10-06 16:24:43 +09:00
parent dee01abab1
commit 9a92ff1681

View File

@ -124,7 +124,9 @@ namespace osu.Game.Rulesets.Mania.UI
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
skin.SourceChanged += onSourceChanged;
if (skin != null)
skin.SourceChanged -= onSourceChanged;
}
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)