From 6c5a4bc6f5dd2ab64b29df178003685b2d153468 Mon Sep 17 00:00:00 2001 From: jack-fractal Date: Mon, 9 Dec 2013 16:51:38 -0500 Subject: [PATCH] fixing the gib code bug --- code/modules/mob/living/carbon/human/death.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index 6bf70088d7a..429008b68d1 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -70,9 +70,10 @@ var/datum/organ/external/head = get_organ("head") var/mob/living/simple_animal/borer/B - for(var/I in head.implants) - if(istype(I,/mob/living/simple_animal/borer)) - B = I + if(istype(head)) + for(var/I in head.implants) + if(istype(I,/mob/living/simple_animal/borer)) + B = I if(B) if(!B.ckey && ckey && B.controlling) B.ckey = ckey