From 842fe11c59d715ca158efccd97feefa2b3bf742f Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Tue, 30 Dec 2014 16:10:37 +1030 Subject: [PATCH] Fixes a runtime with embedding a deleted weapon. --- code/modules/mob/living/carbon/human/human_defense.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 40c6eaaccb..3cefdc836d 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -282,7 +282,7 @@ emp_act forcesay(hit_appends) //forcesay checks stat already //Melee weapon embedded object code. - if (I.damtype == BRUTE && !I.is_robot_module()) + if (I && I.damtype == BRUTE && !I.is_robot_module()) var/damage = I.force if (armor) damage /= armor+1