From c6cc30ff8c935790e70c2daa8ea7f1abc80ca30b Mon Sep 17 00:00:00 2001 From: Citinited Date: Fri, 2 Mar 2018 21:39:48 +0000 Subject: [PATCH] Fixes a runtime that can be caused by headless IPCs --- code/modules/mob/living/carbon/human/species/station.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/carbon/human/species/station.dm b/code/modules/mob/living/carbon/human/species/station.dm index 96a3571f113..6746a773ecc 100644 --- a/code/modules/mob/living/carbon/human/species/station.dm +++ b/code/modules/mob/living/carbon/human/species/station.dm @@ -947,6 +947,8 @@ /datum/species/machine/handle_death(var/mob/living/carbon/human/H) var/obj/item/organ/external/head/head_organ = H.get_organ("head") + if(!head_organ) + return head_organ.h_style = "Bald" head_organ.f_style = "Shaved" spawn(100)