From 6fa45cfaa94d9a38e463c98fd3bb3f66e47ef3c6 Mon Sep 17 00:00:00 2001 From: Techhead0 Date: Tue, 25 Aug 2015 16:39:54 -0400 Subject: [PATCH] Adds if(check_slot) check. --- code/modules/clothing/spacesuits/rig/rig.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index f36c746d1b..6e0e48a480 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -626,7 +626,8 @@ use_obj.forceMove(H) if(!H.equip_to_slot_if_possible(use_obj, equip_to, 0, 1)) use_obj.forceMove(src) - H << "You are unable to deploy \the [piece] as \the [check_slot] [check_slot.gender == PLURAL ? "are" : "is"] in the way." + if(check_slot) + H << "You are unable to deploy \the [piece] as \the [check_slot] [check_slot.gender == PLURAL ? "are" : "is"] in the way." else H << "Your [use_obj.name] [use_obj.gender == PLURAL ? "deploy" : "deploys"] swiftly."