fixes people being unable to play as NT (#13064)

This commit is contained in:
Casper3667
2022-02-02 19:35:58 +01:00
committed by GitHub
parent 23fe07d0d9
commit 567da024d0

View File

@@ -302,7 +302,7 @@
to_client_chat(SPAN_DANGER("Your jobs have been reset due to this!"))
ResetJobs()
return TOPIC_REFRESH_UPDATE_PREVIEW
if(!is_type_in_typecache(S, faction.allowed_species_types))
if(!is_type_in_typecache(S, faction.allowed_species_types) && length(faction.allowed_species_types))
to_client_chat(SPAN_DANGER("Your faction selection does not permit this species, [pref.species] as [pref.faction]."))
to_client_chat(SPAN_DANGER("Your jobs have been reset due to this!"))
ResetJobs()