fixes roundstart runtimes by job_preferences index checks be explicit key checks instead, plus some extra sanity checks

This commit is contained in:
deathride58
2019-09-17 20:15:06 -04:00
parent 9d32611e64
commit d0296a5e81
4 changed files with 16 additions and 16 deletions
@@ -28,9 +28,9 @@
var/datum/job/previewJob
var/highest_pref = 0
for(var/job in job_preferences)
if(job_preferences[job] > highest_pref)
if(job_preferences["[job]"] > highest_pref)
previewJob = SSjob.GetJob(job)
highest_pref = job_preferences[job]
highest_pref = job_preferences["[job]"]
if(previewJob)
// Silicons only need a very basic preview since there is no customization for them.