Skip to content

Commit

Permalink
Alter NRT usage
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Aug 21, 2024
1 parent b7599dd commit fc02b4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osu.Game/Overlays/Mods/ModCustomisationPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ public FocusGrabbingContainer(ModCustomisationPanel panel)
this.panel = panel;
}

private InputManager? inputManager;
private InputManager inputManager = null!;

protected override void LoadComplete()
{
base.LoadComplete();
inputManager = GetContainingInputManager();
inputManager = GetContainingInputManager()!;
}

protected override void Update()
Expand All @@ -229,7 +229,7 @@ protected override void Update()

if (ExpandedState.Value == ModCustomisationPanelState.ExpandedByHover)
{
if (!ReceivePositionalInputAt(inputManager!.CurrentState.Mouse.Position) && inputManager.DraggedDrawable == null)
if (!ReceivePositionalInputAt(inputManager.CurrentState.Mouse.Position) && inputManager.DraggedDrawable == null)
ExpandedState.Value = ModCustomisationPanelState.Collapsed;
}
}
Expand Down

0 comments on commit fc02b4b

Please sign in to comment.