1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

Add null check

This commit is contained in:
Dan Balasescu 2021-06-08 16:15:17 +09:00 committed by GitHub
parent f3f634e969
commit 67135ce3db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,8 @@ namespace osu.Game.Skinning
{
base.Dispose(isDisposing);
CurrentSkin.SourceChanged -= skinChangedImmediate;
if (CurrentSkin != null)
CurrentSkin.SourceChanged -= skinChangedImmediate;
}
#region Re-expose AudioContainer