Fix nullref due to screens now being removed from parent

This commit is contained in:
smoogipoo
2019-01-31 15:02:07 +09:00
parent b90207fa54
commit bdaff27575

View File

@ -164,11 +164,12 @@ namespace osu.Game.Screens.Play
protected override void OnHoverLost(HoverLostEvent e) protected override void OnHoverLost(HoverLostEvent e)
{ {
if (GetContainingInputManager().HoveredDrawables.Contains(visualSettings)) if (GetContainingInputManager()?.HoveredDrawables.Contains(visualSettings) == true)
{ {
// show user setting preview // show user setting preview
UpdateBackgroundElements(); UpdateBackgroundElements();
} }
base.OnHoverLost(e); base.OnHoverLost(e);
} }