From 2485d4ca0cfcfcb14c7f462535bdac1b64c962b2 Mon Sep 17 00:00:00 2001 From: "elly1989@rocketmail.com" Date: Sun, 12 Aug 2012 22:43:39 +0000 Subject: [PATCH] Fix for runtime: The following runtime has occured 99 time(s). runtime error: Cannot read null.stat proc name: process (/datum/disease/alien_embryo/process) source file: alien_embryo.dm,9 usr: null src: Unidentified Foreign Body (/datum/disease/alien_embryo) git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4385 316c924e-a436-60f5-8080-3fe189b3f50e --- code/datums/diseases/alien_embryo.dm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/datums/diseases/alien_embryo.dm b/code/datums/diseases/alien_embryo.dm index e4e0f4ac499..b1da92b74c1 100644 --- a/code/datums/diseases/alien_embryo.dm +++ b/code/datums/diseases/alien_embryo.dm @@ -6,12 +6,12 @@ if(holder == affected_mob) stage_act() - if(affected_mob.stat == DEAD) - if(prob(50)) - if(--longevity<=0) - cure(0) - - if(!affected_mob) //the virus is in inanimate obj + if(affected_mob) + if(affected_mob.stat == DEAD) + if(prob(50)) + if(--longevity<=0) + cure(0) + else //the virus is in inanimate obj cure(0) return