[MIRROR] replaces all instances of ammo_casing/BB to loaded_projectile again without crashing this time (#3478)

* replaces all instances of ammo_casing/BB to loaded_projectile again without crashing this time

* a

Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-02-18 21:00:40 +00:00
committed by GitHub
co-authored by Kylerace Gandalf2k15
parent 9e07263fdf
commit d2c0090c83
30 changed files with 173 additions and 139 deletions
@@ -252,9 +252,9 @@ GLOBAL_LIST_INIT(protected_objects, list(/obj/structure/table, /obj/structure/ca
..()
else if(Pewgun)
if(Pewgun.chambered)
if(Pewgun.chambered.BB)
qdel(Pewgun.chambered.BB)
Pewgun.chambered.BB = null //because qdel takes too long, ensures icon update
if(Pewgun.chambered.loaded_projectile)
qdel(Pewgun.chambered.loaded_projectile)
Pewgun.chambered.loaded_projectile = null //because qdel takes too long, ensures icon update
Pewgun.chambered.update_icon()
..()
else