mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:03:22 +08:00
Add null check in disposal clause
This commit is contained in:
parent
c312a2e53c
commit
fad9e73999
@ -65,7 +65,7 @@ namespace osu.Game.Overlays
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
API.Unregister(this);
|
||||
API?.Unregister(this);
|
||||
}
|
||||
|
||||
public virtual void APIStateChanged(IAPIProvider api, APIState state)
|
||||
|
Loading…
Reference in New Issue
Block a user