From 0f34375088a549eb03f2d166313992bce4070693 Mon Sep 17 00:00:00 2001 From: "elly1989@rocketmail.com" Date: Thu, 28 Jun 2012 21:22:06 +0000 Subject: [PATCH] Runtime fix for: runtime error: Cannot read null.reagent_list proc name: Point To (/atom/verb/point) source file: cellautomata.dm,176 usr: Zinedine Zidane (/mob/living/simple_animal/corgi) src: null call stack: Point To() Cause: corgi/ var/reagents = null git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3939 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/cellautomata.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/game/cellautomata.dm b/code/game/cellautomata.dm index 59ffaf77cbc..37b849226fa 100644 --- a/code/game/cellautomata.dm +++ b/code/game/cellautomata.dm @@ -173,9 +173,10 @@ else if (usr.stat != 0 || usr.restrained()) return else - for(var/datum/reagent/R in usr.reagents.reagent_list) //I'm trying to avoid using canmove() because there are times where it would return 0 when you should still be able to point - if(R.id == "zombiepowder") //This is to counter people spamming point-to when hit by a para-pen or changling's parasting. -Nodrak.. - return + if(usr.reagents) + for(var/datum/reagent/R in usr.reagents.reagent_list) //I'm trying to avoid using canmove() because there are times where it would return 0 when you should still be able to point + if(R.id == "zombiepowder") //This is to counter people spamming point-to when hit by a para-pen or changling's parasting. -Nodrak.. + return var/tile = get_turf(this) if (!tile) @@ -183,7 +184,7 @@ var/P = new /obj/effect/decal/point(tile) spawn (20) - del(P) + if(P) del(P) usr.visible_message("[usr] points to [this]")