From 3595ee930c7ef426ed924e642ebca620b29dd873 Mon Sep 17 00:00:00 2001 From: Verkister Date: Sat, 19 Oct 2019 13:22:14 +0300 Subject: [PATCH] Fixes runtime spam on unequipped sleeperbellies --- code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm index 312d7f06db..8502fcfca4 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm @@ -172,6 +172,8 @@ /obj/item/device/dogborg/sleeper/proc/drain(var/amt = 3) //Slightly reduced cost (before, it was always injecting inaprov) hound = src.loc + if(istype(hound,/obj/item/weapon/robot_module)) + hound = hound.loc hound.cell.charge = hound.cell.charge - amt /obj/item/device/dogborg/sleeper/attack_self(mob/user)