From d12eaadcc4dd580c61d0074834bd4aab81925cef Mon Sep 17 00:00:00 2001 From: chuga-git <98280110+chuga-git@users.noreply.github.com> Date: Sun, 16 Jun 2024 07:18:52 -0500 Subject: [PATCH] Actually fixes account_name runtime in rename_character (#25880) * this is why you test things * Update code/modules/mob/mob_misc_procs.dm Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com> --------- Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com> Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> --- code/modules/mob/mob_misc_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/mob_misc_procs.dm b/code/modules/mob/mob_misc_procs.dm index 0834f20be6c..c186643e51d 100644 --- a/code/modules/mob/mob_misc_procs.dm +++ b/code/modules/mob/mob_misc_procs.dm @@ -593,7 +593,7 @@ name = newname if(mind) mind.name = newname - if(mind?.initial_account?.account_name == oldname) + if(!isnull(oldname) && mind?.initial_account?.account_name == oldname) mind.initial_account.account_name = newname if(dna) dna.real_name = real_name