From 73451ff40dce4fe13d89b9cfd218a3c58588b26d Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Mon, 24 Jul 2023 07:32:59 +0900 Subject: [PATCH] fix: Missing species now for sure defaults to human (#21708) --- code/modules/client/preference/character.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/client/preference/character.dm b/code/modules/client/preference/character.dm index 679a8cbbe19..0e3ce0c8d62 100644 --- a/code/modules/client/preference/character.dm +++ b/code/modules/client/preference/character.dm @@ -463,7 +463,8 @@ metadata = sanitize_text(metadata, initial(metadata)) real_name = reject_bad_name(real_name, TRUE) - if(isnull(species)) + if(isnull(species) || isnull(SP)) + SP = GLOB.all_species["Human"] species = "Human" stack_trace("Character doesn't have a species, character name is [real_name]. Defaulting to human.")