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.
This commit is contained in:
Tigercat2000
2015-05-14 05:56:50 -07:00
parent 9553c35fb0
commit 1b72f6e199
+3
View File
@@ -788,6 +788,9 @@
set desc = "Fire the weapons."
set category = "Spacepod"
set src = usr.loc
if(!equipment_system.weapon_system)
usr << "<span class='warning'>\The [src] has no weapons!</span>"
return
equipment_system.weapon_system.fire_weapons()
obj/spacepod/verb/toggleLights()