From 7b579940d469b65e42c60b5c0a2e3285e97aa60c Mon Sep 17 00:00:00 2001 From: n3ophyt3 Date: Wed, 10 Aug 2011 00:40:31 +0000 Subject: [PATCH] Fixed a runtime error with the weldfuel reagent. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2002 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/chemical/Chemistry-Reagents.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/chemical/Chemistry-Reagents.dm b/code/modules/chemical/Chemistry-Reagents.dm index 34c7327e6b..26b1cd8f77 100644 --- a/code/modules/chemical/Chemistry-Reagents.dm +++ b/code/modules/chemical/Chemistry-Reagents.dm @@ -880,6 +880,8 @@ datum reaction_obj(var/obj/O, var/volume) src = null var/turf/the_turf = get_turf(O) + if(!the_turf) + return //No sense trying to start a fire if you don't have a turf to set on fire. --NEO var/datum/gas_mixture/napalm = new var/datum/gas/volatile_fuel/fuel = new fuel.moles = 15