* GC Fixes

* tweak

* fixes-gc-testing
This commit is contained in:
Fox McCloud
2020-05-14 20:37:13 -04:00
committed by GitHub
parent e3c21606e5
commit bd6ed7fa86
5 changed files with 27 additions and 15 deletions
@@ -41,6 +41,9 @@
LAZYREMOVE(owner.status_effects, src)
on_remove()
owner = null
if(linked_alert)
linked_alert.attached_effect = null
linked_alert = null
return ..()
/datum/status_effect/process()
@@ -85,6 +88,13 @@
desc = "You don't feel any different..."
var/datum/status_effect/attached_effect
/obj/screen/alert/status_effect/Destroy()
if(attached_effect)
attached_effect.linked_alert = null
attached_effect = null
return ..()
//////////////////
// HELPER PROCS //
//////////////////