mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Add weakref support to qdel (#2742)
* Add weakref support to qdel (#56171) qdel() should allow usage of weakrefs to avoid harddels on long duration qdel_in usage * Add weakref support to qdel Co-authored-by: spookydonut <github@spooksoftware.com>
This commit is contained in:
@@ -180,7 +180,7 @@
|
||||
QDEL_IN(colour, 11)
|
||||
doomslayer = victim
|
||||
RegisterSignal(src, COMSIG_PARENT_QDELETING, .proc/end_blood_frenzy)
|
||||
QDEL_IN(src, duration)
|
||||
QDEL_IN(WEAKREF(src), duration)
|
||||
|
||||
/obj/effect/mine/pickup/bloodbath/proc/end_blood_frenzy()
|
||||
if(doomslayer)
|
||||
|
||||
Reference in New Issue
Block a user