Merge pull request #19318 from DaveTheHeadcrab/plastic_explosives

Resolves a runtime with X4
This commit is contained in:
oranges
2016-07-16 12:02:49 +12:00
committed by GitHub
@@ -164,7 +164,7 @@
if(location)
if(istype(loc, /obj/item/weapon/twohanded/spear))
explosion(location, 0, 2, 3)
else if(target.density)
else if(target && target.density)
var/turf/T = get_step(location, aim_dir)
explosion(get_step(T, aim_dir),0,0,3)
explosion(T,0,2,0)