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>
This commit is contained in:
chuga-git
2024-06-16 07:18:52 -05:00
committed by GitHub
parent 984672c209
commit d12eaadcc4
+1 -1
View File
@@ -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