mirror of
https://github.com/osukey/osukey.git
synced 2025-08-01 21:58:46 +09:00
Guard against nulls (load not run)
This commit is contained in:
@ -188,7 +188,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
drawableSpinner.ApplyCustomUpdateState -= updateStateTransforms;
|
||||
|
||||
if (drawableSpinner != null)
|
||||
drawableSpinner.ApplyCustomUpdateState -= updateStateTransforms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -98,7 +98,9 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
drawableSpinner.ApplyCustomUpdateState -= updateStateTransforms;
|
||||
|
||||
if (drawableSpinner != null)
|
||||
drawableSpinner.ApplyCustomUpdateState -= updateStateTransforms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,9 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
drawableSpinner.ApplyCustomUpdateState -= updateStateTransforms;
|
||||
|
||||
if (drawableSpinner != null)
|
||||
drawableSpinner.ApplyCustomUpdateState -= updateStateTransforms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user