mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-10 14:44:05 +01:00
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:
@@ -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]")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user