From 605935303b38c6a81869fa2c4ae33de1f16c24cc Mon Sep 17 00:00:00 2001 From: EvilDragonfiend <87972842+EvilDragonfiend@users.noreply.github.com> Date: Sun, 14 Jul 2024 11:11:10 +0900 Subject: [PATCH] fix error (#11171) --- code/modules/events/bureaucratic_error.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/events/bureaucratic_error.dm b/code/modules/events/bureaucratic_error.dm index d980f3ddc5f5c..087a9cbc232ea 100644 --- a/code/modules/events/bureaucratic_error.dm +++ b/code/modules/events/bureaucratic_error.dm @@ -6,7 +6,7 @@ /datum/round_event/bureaucratic_error announceWhen = 1 - var/datum/job/chosen_job + var/chosen_job_title /datum/round_event/bureaucratic_error/setup() var/error_count = 10 @@ -14,13 +14,13 @@ var/datum/job/J = SSjob.GetJob(pick(get_all_jobs())) if(!J || J.lock_flags) continue - chosen_job = J + chosen_job_title = J.title break - if(!chosen_job) + if(isnull(chosen_job_title)) return kill() /datum/round_event/bureaucratic_error/announce(fake) priority_announce("A recent bureaucratic error in the Organic Resources Department may result in personnel shortages in some departments and redundant staffing in others.", "Paperwork Mishap Alert", SSstation.announcer.get_rand_alert_sound()) /datum/round_event/bureaucratic_error/start() - SSjob.set_overflow_role(chosen_job) + SSjob.set_overflow_role(chosen_job_title)