From aa3e52b1befb0b18a1c232f3190948fcbdf3c364 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Wed, 29 Oct 2014 08:07:36 +0100 Subject: [PATCH] Adds sanity check for the mecha fire extingusher as well. Would rather remake it to be based on the standard extinguisher code but that's a dev project. --- code/game/mecha/equipment/tools/tools.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/mecha/equipment/tools/tools.dm b/code/game/mecha/equipment/tools/tools.dm index 42f5debc622..3f801db365f 100644 --- a/code/game/mecha/equipment/tools/tools.dm +++ b/code/game/mecha/equipment/tools/tools.dm @@ -216,6 +216,8 @@ step_towards(W,my_target) if(!W) return + if(!W.reagents) + break var/turf/W_turf = get_turf(W) W.reagents.reaction(W_turf) for(var/atom/atm in W_turf)