mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
Guns no longer try to destroy null variables (#43771)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user