1
0
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:
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)
{
if (GetContainingInputManager().HoveredDrawables.Contains(visualSettings))
if (GetContainingInputManager()?.HoveredDrawables.Contains(visualSettings) == true)
{
// show user setting preview
UpdateBackgroundElements();
}
base.OnHoverLost(e);
}