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

Add missing CurrentSkin null check in DHO disposal

This commit is contained in:
Bartłomiej Dach 2021-06-11 09:18:24 +02:00
parent 04413f1634
commit 296761ade5

View File

@ -716,6 +716,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
if (HitObject != null) if (HitObject != null)
HitObject.DefaultsApplied -= onDefaultsApplied; HitObject.DefaultsApplied -= onDefaultsApplied;
if (CurrentSkin != null)
CurrentSkin.SourceChanged -= skinSourceChanged; CurrentSkin.SourceChanged -= skinSourceChanged;
} }
} }