From e138c781841cb73f1c5d3d30d63cf8702aed647f Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 19 Nov 2023 13:37:48 -0800 Subject: [PATCH] Fix tooltip hiding issue --- code/modules/tooltip/tooltip.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/tooltip/tooltip.dm b/code/modules/tooltip/tooltip.dm index b3dc005c0887..e668196d383a 100644 --- a/code/modules/tooltip/tooltip.dm +++ b/code/modules/tooltip/tooltip.dm @@ -98,10 +98,12 @@ Notes: last_target = null /datum/tooltip/proc/do_hide() - winshow(owner, control, FALSE) + if(owner) + winshow(owner, control, FALSE) /datum/tooltip/Destroy(force, ...) last_target = null + owner = null return ..() //Open a tooltip for user, at a location based on params