From a2de7f4533d36c8d2aa6697657e2cb58b2bc72f6 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Wed, 24 Apr 2024 00:45:25 -0500 Subject: [PATCH] fixes a radial menu gc false positive (#25237) --- code/_onclick/hud/radial.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/_onclick/hud/radial.dm b/code/_onclick/hud/radial.dm index 501de75891e..36082679a21 100644 --- a/code/_onclick/hud/radial.dm +++ b/code/_onclick/hud/radial.dm @@ -10,6 +10,7 @@ GLOBAL_LIST_EMPTY(radial_menus) var/datum/radial_menu/parent /atom/movable/screen/radial/Destroy() + parent.current_user.screen -= src parent = null return ..() @@ -245,7 +246,7 @@ GLOBAL_LIST_EMPTY(radial_menus) QDEL_LIST_CONTENTS(elements) QDEL_NULL(close_button) anchor = null - . = ..() + return ..() /* Presents radial menu to user anchored to anchor (or user if the anchor is currently in users screen)