From 992936817cad428eead2d58804c69a2e64ef5e46 Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Wed, 8 Apr 2026 09:26:01 -0700 Subject: [PATCH] [MIRROR] Fix TG random name causing recursion (#12646) Co-authored-by: Aura Dusklight <46622484+NovaDusklight@users.noreply.github.com> --- code/modules/client/preferences.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index b1ced744cd..1bca205e30 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -298,7 +298,8 @@ GLOBAL_LIST_EMPTY(preferences_datums) character.set_species(read_preference(/datum/preference/choiced/species)) // Special Case: This references variables owned by two different datums, so do it here. if(read_preference(/datum/preference/toggle/human/name_is_always_random)) - update_preference_by_type(/datum/preference/name/real_name, random_name(read_preference(/datum/preference/choiced/gender/identifying), read_preference(/datum/preference/choiced/species))) + // write_ instead of update_ to avoid update_preference_by_type calling copy_to again. + write_preference_by_type(/datum/preference/name/real_name, random_name(read_preference(/datum/preference/choiced/gender/identifying), read_preference(/datum/preference/choiced/species))) // Ask the preferences datums to apply their own settings to the new mob player_setup.copy_to_mob(character)