fixes weed node gc issues (#20194)

This commit is contained in:
GDN
2023-01-15 17:10:51 -06:00
committed by GitHub
parent 25868fd64e
commit 3fc4b05b72
+6
View File
@@ -265,6 +265,7 @@
return
check_surroundings()
START_PROCESSING(SSobj, src)
RegisterSignal(linked_node, COMSIG_PARENT_QDELETING, PROC_REF(clear_linked_node))
/obj/structure/alien/weeds/Destroy()
STOP_PROCESSING(SSobj, src)
@@ -274,6 +275,11 @@
clear_wall_weed()
return ..()
/obj/structure/alien/weeds/proc/clear_linked_node()
SIGNAL_HANDLER
UnregisterSignal(linked_node, COMSIG_PARENT_QDELETING)
linked_node = null
/obj/structure/alien/weeds/attack_alien(mob/living/carbon/alien/humanoid/user)
if(user.a_intent != INTENT_HARM)
return