Fix possible null reference inspection

This commit is contained in:
Dan Balasescu
2022-08-11 20:38:08 +09:00
parent f29d1b2ded
commit d88f247594

View File

@ -17,7 +17,7 @@ namespace osu.Game.Input.Bindings
private InputManager? parentInputManager; private InputManager? parentInputManager;
public GlobalActionContainer(OsuGameBase game) public GlobalActionContainer(OsuGameBase? game)
: base(matchingMode: KeyCombinationMatchingMode.Modifiers) : base(matchingMode: KeyCombinationMatchingMode.Modifiers)
{ {
if (game is IKeyBindingHandler<GlobalAction>) if (game is IKeyBindingHandler<GlobalAction>)