From a7057f8331b40801649e390dea4ae9f9a184fa64 Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Tue, 6 Feb 2018 01:58:16 +0200 Subject: [PATCH] Merge pull request #35324 from AutomaticFrenzy/patch/defibrillator-runtime Fix defibrillator mount runtiming continously while empty --- code/game/machinery/defibrillator_mount.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/defibrillator_mount.dm b/code/game/machinery/defibrillator_mount.dm index c0a993f8e5..c9b9670191 100644 --- a/code/game/machinery/defibrillator_mount.dm +++ b/code/game/machinery/defibrillator_mount.dm @@ -38,7 +38,7 @@ if(defib && defib.cell && defib.cell.charge < defib.cell.maxcharge) use_power(20) defib.cell.give(18) //90% efficiency, slightly better than the cell charger's 87.5% - if(isliving(defib.paddles.loc)) + if(defib && defib.paddles && isliving(defib.paddles.loc)) var/mob/living/L = defib.paddles.loc if(!L.Adjacent(src)) to_chat(L, "[defib]'s paddles overextend and come out of your hands!")