Faction species blacklists will no longer become null due to incorrect use of initial. (#10120)

This commit is contained in:
mikomyazaki
2020-09-29 15:44:14 +02:00
committed by GitHub
parent 6935f1f3cd
commit 945fa02fd6
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -30,7 +30,8 @@
if(LAZYACCESS(job_species_blacklist, role.title))
role.blacklisted_species = job_species_blacklist[role.title]
else
role.blacklisted_species = initial(role.blacklisted_species)
var/datum/job/J = new role.type
role.blacklisted_species = J.blacklisted_species
. += role
/datum/faction/proc/get_selection_error(datum/preferences/prefs)
@@ -0,0 +1,7 @@
author: mikomyazaki
delete-after: True
changes:
- bugfix: "Faction job-species blacklists will no longer be nulled under some circumstances, allowing invalid job-species combinations."