From 51e0fb19871f58ec66050482bfaeb14ee5621ec3 Mon Sep 17 00:00:00 2001 From: Kaostico Date: Tue, 24 Sep 2024 00:47:43 -0300 Subject: [PATCH] Fixed mob spawn restricted species validations --- modular_doppler/modular_mob_spawn/code/mob_spawn.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modular_doppler/modular_mob_spawn/code/mob_spawn.dm b/modular_doppler/modular_mob_spawn/code/mob_spawn.dm index c3a0ca11c061c..7e92ebd3a1ccf 100644 --- a/modular_doppler/modular_mob_spawn/code/mob_spawn.dm +++ b/modular_doppler/modular_mob_spawn/code/mob_spawn.dm @@ -3,7 +3,7 @@ var/list/restricted_species = list() /obj/effect/mob_spawn/ghost_role/create(mob/mob_possessor, newname) - if(restricted_species && !(mob_possessor?.client?.prefs?.read_preference(/datum/preference/choiced/species) in restricted_species)) + if(restricted_species.len && !(mob_possessor?.client?.prefs?.read_preference(/datum/preference/choiced/species) in restricted_species)) var/text = "Current loaded character doesn't match required species: " var/i = 1 for(var/datum/species/speciesItem as anything in restricted_species)