From 1b72f6e1995997dde46c2f965dec49dacaec9482 Mon Sep 17 00:00:00 2001 From: Tigercat2000 Date: Thu, 14 May 2015 05:56:50 -0700 Subject: [PATCH] FIX: Spacepod null weapon firing runtime This commit fixes a runtime error with spacepods, which would happen when someone tried to fire the weapons while the pod has no weapons. --- code/game/vehicles/spacepods/spacepod.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/vehicles/spacepods/spacepod.dm b/code/game/vehicles/spacepods/spacepod.dm index 2f2d3a657e2..bd3b7e05cc7 100644 --- a/code/game/vehicles/spacepods/spacepod.dm +++ b/code/game/vehicles/spacepods/spacepod.dm @@ -788,6 +788,9 @@ set desc = "Fire the weapons." set category = "Spacepod" set src = usr.loc + if(!equipment_system.weapon_system) + usr << "\The [src] has no weapons!" + return equipment_system.weapon_system.fire_weapons() obj/spacepod/verb/toggleLights()