Fixes runtime in SSRecords causing issues with Crew Manifest (#10559)

This commit is contained in:
Jiří Barouš
2020-11-16 18:09:10 +01:00
committed by GitHub
parent 54b5b87670
commit 8aa7769ef9
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -229,7 +229,7 @@
var/isactive = t.physical_status
var/list/departments
if(job.departments.len > 0 && all_in_list(job.departments, manifest))
if(istype(job) && job.departments.len > 0 && all_in_list(job.departments, manifest))
departments = job.departments
else // no department set or there's something weird
departments = list(DEPARTMENT_MISCELLANEOUS = JOBROLE_DEFAULT)
+4
View File
@@ -0,0 +1,4 @@
author: Amunak
delete-after: True
changes:
- bugfix: "Changing someone's rank will no longer cause a runtime that causes Crew Manifest to stop working / show nothing."