Guns no longer try to destroy null variables (#43771)

This commit is contained in:
oranges
2019-05-06 19:09:02 +12:00
committed by AnturK
parent ae5896749e
commit bd9afd78a5

View File

@@ -78,11 +78,16 @@
build_zooming()
/obj/item/gun/Destroy()
QDEL_NULL(pin)
QDEL_NULL(gun_light)
QDEL_NULL(bayonet)
QDEL_NULL(chambered)
QDEL_NULL(azoom)
if(pin)
QDEL_NULL(pin)
if(gun_light)
QDEL_NULL(gun_light)
if(bayonet)
QDEL_NULL(bayonet)
if(chambered) //Not all guns are chambered (EMP'ed energy guns etc)
QDEL_NULL(chambered)
if(azoom)
QDEL_NULL(azoom)
return ..()
/obj/item/gun/handle_atom_del(atom/A)