From c00def95a678aff42c024fae9fc2170fadd3dfaa Mon Sep 17 00:00:00 2001 From: phil235 Date: Sun, 26 Apr 2015 17:30:07 +0200 Subject: [PATCH] Fixes a runtime with pod plants, this should fix the unharvestable podplant issue. --- code/modules/hydroponics/hydroponics.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm index 361fe6843b0..3ae3ad8741f 100644 --- a/code/modules/hydroponics/hydroponics.dm +++ b/code/modules/hydroponics/hydroponics.dm @@ -824,7 +824,7 @@ obj/machinery/hydroponics/attackby(var/obj/item/O as obj, var/mob/user as mob, p break else //If the player has ghosted from his corpse before blood was drawn, his ckey is no longer attached to the mob, so we need to match up the cloned player through the mind key for(var/mob/M in player_list) - if(ckey(M.mind.key) == ckey(mind.key) && M.ckey && M.client && M.stat == 2 && !M.suiciding) + if(mind && M.mind && ckey(M.mind.key) == ckey(mind.key) && M.ckey && M.client && M.stat == 2 && !M.suiciding) if(istype(M, /mob/dead/observer)) var/mob/dead/observer/O = M if(!O.can_reenter_corpse)