mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
Fix nullref due to screens now being removed from parent
This commit is contained in:
parent
b90207fa54
commit
bdaff27575
@ -164,11 +164,12 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
protected override void OnHoverLost(HoverLostEvent e)
|
||||
{
|
||||
if (GetContainingInputManager().HoveredDrawables.Contains(visualSettings))
|
||||
if (GetContainingInputManager()?.HoveredDrawables.Contains(visualSettings) == true)
|
||||
{
|
||||
// show user setting preview
|
||||
UpdateBackgroundElements();
|
||||
}
|
||||
|
||||
base.OnHoverLost(e);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user