From f03b79b456bcf571ce7d6924ce8b3fbd9fbf882e Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Mon, 23 Jan 2023 16:28:36 -0600 Subject: [PATCH] fixes a broken check in the job controller (#20264) --- code/controllers/subsystem/jobs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/subsystem/jobs.dm b/code/controllers/subsystem/jobs.dm index 777f65e2b74..dc21f3d740c 100644 --- a/code/controllers/subsystem/jobs.dm +++ b/code/controllers/subsystem/jobs.dm @@ -678,7 +678,7 @@ SUBSYSTEM_DEF(jobs) var/datum/job/tgt_job = GetJob(jobtitle) if(!tgt_job) return - if(!tgt_job.department_head[1]) + if(!length(tgt_job.department_head)) return var/boss_title = tgt_job.department_head[1] var/obj/item/pda/target_pda