From 32bd4b0608cd5a6f0227246508098f4faa80e5b8 Mon Sep 17 00:00:00 2001 From: MystLeissa Date: Thu, 1 Aug 2019 01:12:30 -0400 Subject: [PATCH] Fixed Disconnection Problems with PAI Cams --- code/modules/mob/living/silicon/pai/software.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/pai/software.dm b/code/modules/mob/living/silicon/pai/software.dm index 4d3417f5758c3..4833e87f956cf 100644 --- a/code/modules/mob/living/silicon/pai/software.dm +++ b/code/modules/mob/living/silicon/pai/software.dm @@ -623,7 +623,7 @@ playsound(src, 'sound/machines/terminal_off.ogg', 25, 0) return if(C) - if(!C.can_use() || user.eye_blind || user.incapacitated()) + if(!C.can_use() || user.eye_blind || user.incapacitated() || !cable || !cable.machine) user.unset_machine() return 0 playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 25, 0)