From 9c23f0c8f5af18c0047971eaed3684bbcb31fe9f Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Fri, 15 Oct 2021 10:57:46 +0100 Subject: [PATCH] `is_special_character()` mind check (#16938) --- code/modules/admin/admin.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index b98e584f465..f065bbce187 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -629,7 +629,6 @@ GLOBAL_VAR_INIT(nologevent, 0) * * Arguments: * * M - the mob you're checking - * * */ /proc/is_special_character(mob/M) if(!SSticker.mode) @@ -640,7 +639,7 @@ GLOBAL_VAR_INIT(nologevent, 0) var/mob/living/silicon/robot/R = M if(R.emagged) return TRUE - if(M.mind.special_role)//If they have a mind and special role, they are some type of traitor or antagonist. + if(M.mind?.special_role)//If they have a mind and special role, they are some type of traitor or antagonist. return TRUE return FALSE