From 8b3403d54f5674574a386ae5b121e57f9501f9b3 Mon Sep 17 00:00:00 2001 From: Leshana Date: Thu, 1 Jun 2017 15:52:38 -0400 Subject: [PATCH] Prevent returning null from get_authentification_rank() Make sure we return the no job value if they have an id without a rank that is in a PDA. Should fix https://github.com/PolarisSS13/Polaris/issues/3486 --- code/modules/mob/living/carbon/human/human.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 66abc50cabe..83ce56e29e7 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -261,7 +261,7 @@ var/obj/item/device/pda/pda = wear_id if (istype(pda)) if (pda.id) - return pda.id.rank + return pda.id.rank ? pda.id.rank : if_no_job else return pda.ownrank else