From 64df81070013e879dbf3497fc4874b4cb45c8de3 Mon Sep 17 00:00:00 2001 From: Aranclanos Date: Fri, 14 Feb 2014 02:37:31 -0300 Subject: [PATCH] adds a small check to see if the job controller started up before using buttons related to it and generate runtimes. Usually these kind of new things are happening due to the amount of time that away missions take to load. --- code/modules/client/preferences.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index fee47bf5869..2926a9bc44b 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -427,6 +427,8 @@ datum/preferences return 0 proc/UpdateJobPreference(mob/user, role, desiredLvl) + if(!job_master) + return var/datum/job/job = job_master.GetJob(role) if(!job)