From 83f4661f05ca7f26c10c28f2e94a119f570bfa01 Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Wed, 30 Dec 2015 10:28:27 -0600 Subject: [PATCH] Missing checks --- code/datums/datumvars.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index 4b70533fac5..413764f7345 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -613,9 +613,9 @@ body log_admin("[key_name(usr)] has offered control of ([key_name(M)]) to ghosts.") message_admins("[key_name_admin(usr)] has offered control of ([key_name_admin(M)]) to ghosts") var/poll_message = "Do you want to play as [M.real_name]?" - if(M.mind.assigned_role) + if(M.mind && M.mind.assigned_role) poll_message = "[poll_message] Job:[M.mind.assigned_role]." - if(M.mind.special_role) + if(M.mind && M.mind.special_role) poll_message = "[poll_message] Status:[M.mind.special_role]." var/list/mob/dead/observer/candidates = pollCandidates(poll_message, "pAI", null, FALSE, 100) var/mob/dead/observer/theghost = null