From 9e296ed32e35d6f7c00a18f3cc6e1f4290e40b08 Mon Sep 17 00:00:00 2001 From: Shadowlight213 Date: Thu, 7 Apr 2016 00:05:29 -0700 Subject: [PATCH] Fixes a runtime with IsAdminGhost --- code/modules/mob/mob_helpers.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 66abe8e96ef..75a6afd8309 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -438,6 +438,8 @@ It's fairly easy to fix if dealing with single letters but not so much with comp return /proc/IsAdminGhost(var/mob/user) + if(!user) //Are they a mob? Auto interface updates call this with a null src + return if(!user.client) // Do they have a client? return if(!isobserver(user)) // Are they a ghost?