Fix inconsistency with alien whitelist

This commit is contained in:
Arokha Sieyes
2016-07-05 14:48:17 -04:00
parent 10bc1bf21e
commit 86fe574faf
7 changed files with 57 additions and 47 deletions
@@ -55,7 +55,7 @@ var/list/gear_datums = list()
var/list/valid_gear_choices = list()
for(var/gear_name in gear_datums)
var/datum/gear/G = gear_datums[gear_name]
if(G.whitelisted && !is_alien_whitelisted(preference_mob(), G.whitelisted))
if(G.whitelisted && !is_alien_whitelisted(preference_mob(), all_species[G.whitelisted]))
continue
if(max_cost && G.cost > max_cost)
continue