Defib QDEL_NULL

This commit is contained in:
Dave
2019-02-16 10:40:07 -05:00
committed by GitHub
parent c16702e235
commit 5d536f4c09
+2 -3
View File
@@ -34,8 +34,7 @@
update_icon()
/obj/machinery/defibrillator_mount/Destroy()
if(defib)
QDEL_NULL(defib)
QDEL_NULL(defib)
. = ..()
/obj/machinery/defibrillator_mount/examine(mob/user)
@@ -153,4 +152,4 @@
/obj/item/mounted/frame/defib_mount/do_build(turf/on_wall, mob/user)
new /obj/machinery/defibrillator_mount(get_turf(src), get_dir(on_wall, user), 1)
playsound(src, 'sound/machines/click.ogg', 50, TRUE)
qdel(src)
qdel(src)