From 24bc259d243f392c7a46d3f9f1dbc7c5129d4143 Mon Sep 17 00:00:00 2001 From: phil235 Date: Fri, 8 May 2015 17:56:59 +0200 Subject: [PATCH] Fixes a runtime with headcrabs controled by non changeling players. --- code/modules/mob/living/simple_animal/hostile/headcrab.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/headcrab.dm b/code/modules/mob/living/simple_animal/hostile/headcrab.dm index 8df6b5460fc..04b3e7d804c 100644 --- a/code/modules/mob/living/simple_animal/hostile/headcrab.dm +++ b/code/modules/mob/living/simple_animal/hostile/headcrab.dm @@ -66,7 +66,8 @@ obj/item/body_egg/changeling_egg/proc/Pop() var/mob/living/carbon/monkey/M = new(affected_mob.loc) if(owner) owner.transfer_to(M) - owner.changeling.purchasedpowers += new /obj/effect/proc_holder/changeling/humanform(null) + if(owner.changeling) + owner.changeling.purchasedpowers += new /obj/effect/proc_holder/changeling/humanform(null) M.key = owner.key if(ishuman(affected_mob)) var/mob/living/carbon/human/H = affected_mob