makes clingstings GC (#20656)

* makes clingstings GC

* steels review
This commit is contained in:
GDN
2023-04-21 23:53:30 -05:00
committed by GitHub
parent c50ffd160f
commit 93fc25782f
3 changed files with 3 additions and 2 deletions
@@ -11,7 +11,7 @@
click_override = new(CALLBACK(src, PROC_REF(try_to_sting)))
/datum/action/changeling/sting/Destroy(force, ...)
if(cling.owner.current.middleClickOverride == click_override)
if(cling.owner.current && cling.owner.current.middleClickOverride == click_override) // this is a very scuffed way of doing this honestly
cling.owner.current.middleClickOverride = null
QDEL_NULL(click_override)
if(cling.chosen_sting == src)