1
0
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:
Dan Balasescu 2021-06-11 16:56:34 +09:00 committed by GitHub
commit 434c7b69d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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