[MIRROR] Cleans up a circular ref in status effect code (#2313)

* Cleans up a circular ref in status effect code, I'm not sure if it's causing harddels, but I don't like it (#55706)

* Cleans up a circular ref in status effect code

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-12-25 08:21:59 +01:00
committed by GitHub
co-authored by LemonInTheDark
parent 0c0cdfb5d9
commit b91c7a976b
@@ -38,6 +38,7 @@
/datum/status_effect/Destroy()
STOP_PROCESSING(SSfastprocess, src)
if(owner)
linked_alert = null
owner.clear_alert(id)
LAZYREMOVE(owner.status_effects, src)
on_remove()
@@ -89,6 +90,10 @@
desc = "You don't feel any different..."
var/datum/status_effect/attached_effect
/atom/movable/screen/alert/status_effect/Destroy()
attached_effect = null //Don't keep a ref now
return ..()
//////////////////
// HELPER PROCS //
//////////////////