mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 01:22:59 +08:00
Merge pull request #13447 from bdach/missing-event-null-check
Add missing `CurrentSkin` null check in DHO disposal
This commit is contained in:
commit
434c7b69d2
@ -716,7 +716,8 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
if (HitObject != null)
|
||||
HitObject.DefaultsApplied -= onDefaultsApplied;
|
||||
|
||||
CurrentSkin.SourceChanged -= skinSourceChanged;
|
||||
if (CurrentSkin != null)
|
||||
CurrentSkin.SourceChanged -= skinSourceChanged;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user