From db1cd83bc12f819715269dde4aac7056f7958af8 Mon Sep 17 00:00:00 2001 From: "aranclanos@hotmail.com" Date: Fri, 11 Jan 2013 20:26:48 +0000 Subject: [PATCH] Runtime fix for borgs touching buttons on their UI about items that were deleted. This is just a small fix and somewhat incomplete, I'm not on the mood to fix the whole borg interface. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5521 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/living/silicon/robot/robot.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index a789a68a2ba..29cf43eba40 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -852,7 +852,8 @@ if (href_list["mod"]) var/obj/item/O = locate(href_list["mod"]) - O.attack_self(src) + if (O) + O.attack_self(src) if (href_list["act"]) var/obj/item/O = locate(href_list["act"])