mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
Guard against nulls (load not run)
This commit is contained in:
parent
e60e47ff66
commit
b6bc829bd5
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user