Fixes Holster Logic

Apparently if a gun is holstered, cryo just automatically deletes it- this should fix that according to Sabre
This commit is contained in:
LiberatedWaveMan
2021-07-26 15:37:41 -04:00
parent 9d62303eb4
commit e9c0a7ddb9
@@ -10,7 +10,9 @@
w_class = WEIGHT_CLASS_NORMAL // so it doesn't fit in pockets
/obj/item/clothing/accessory/holster/Destroy()
QDEL_NULL(holstered)
if(holstered?.loc == src) // Gun still in the holster
holstered.forceMove(loc)
holstered = null
return ..()
//subtypes can override this to specify what can be holstered