mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Null-check in disposal of DatabasedKeyBindingInputManager
This commit is contained in:
parent
9056f2d978
commit
8adf0a6db3
@ -51,7 +51,9 @@ namespace osu.Game.Input.Bindings
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
store.KeyBindingChanged -= ReloadMappings;
|
||||
|
||||
if (store != null)
|
||||
store.KeyBindingChanged -= ReloadMappings;
|
||||
}
|
||||
|
||||
protected override void ReloadMappings() => KeyBindings = store.Query(ruleset?.ID, variant).ToList();
|
||||
|
Loading…
Reference in New Issue
Block a user