From 1e63811d0f912a06f103eed9760cba7889462cd8 Mon Sep 17 00:00:00 2001 From: Krausus Date: Thu, 14 May 2015 08:28:41 -0400 Subject: [PATCH] Actually fixes medical item runtimes They never checked whether the limb you're targeting actually exists, which caused all sorts of runtimes all over the place --- code/game/objects/items/stacks/medical.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/stacks/medical.dm b/code/game/objects/items/stacks/medical.dm index 979330345cc..834dcd33d02 100644 --- a/code/game/objects/items/stacks/medical.dm +++ b/code/game/objects/items/stacks/medical.dm @@ -28,7 +28,11 @@ if(!M.can_inject(user, 1)) return 1 - if(affecting && (affecting.status & ORGAN_ROBOT)) + if(!affecting) + user << "That limb is missing!" + return 1 + + if(affecting.status & ORGAN_ROBOT) user << "This can't be used on a robotic limb." return 1