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
This commit is contained in:
elly1989@rocketmail.com
2012-06-28 21:22:06 +00:00
parent f1e66b05a9
commit 0f34375088
+5 -4
View File
@@ -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("<b>[usr]</b> points to [this]")