race conditions and turfs beings special.

This commit is contained in:
Ghommie
2020-02-06 01:13:28 +01:00
parent ab06c23a2b
commit 233ed5873f
3 changed files with 8 additions and 6 deletions
+4 -3
View File
@@ -57,9 +57,10 @@
fire_delay = shot.delay
/obj/item/gun/energy/Destroy()
QDEL_NULL(cell)
QDEL_LIST(ammo_type)
STOP_PROCESSING(SSobj, src)
if(flags_1 & INITIALIZED_1)
QDEL_NULL(cell)
QDEL_LIST(ammo_type)
STOP_PROCESSING(SSobj, src)
return ..()
/obj/item/gun/energy/process()