fixes a radial menu gc false positive (#25237)

This commit is contained in:
GDN
2024-04-24 00:45:25 -05:00
committed by GitHub
parent 6c756f98c0
commit a2de7f4533
+2 -1
View File
@@ -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)