From 38769d2da075544db45fe0367a538f1c3a45474b Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 17 Oct 2021 02:32:54 +0200 Subject: [PATCH] [MIRROR] Fixes the mind.name of evolved aliens not being updated (for real this time) [MDB IGNORE] (#8864) * Fixes an old one line PR that was supposed to fix something but actually didn't. (#62020) In #61595, I forgot that `mind.transfer_to()` sets the mind variable of the current mob to null. So i'm moving that `mind.name = new_xeno.real_name` statement above the proc call. * Fixes the mind.name of evolved aliens not being updated (for real this time) Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/modules/mob/living/carbon/alien/alien.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/alien/alien.dm b/code/modules/mob/living/carbon/alien/alien.dm index 949e789723c..3b8542aec36 100644 --- a/code/modules/mob/living/carbon/alien/alien.dm +++ b/code/modules/mob/living/carbon/alien/alien.dm @@ -127,8 +127,8 @@ Des: Removes all infected images from the alien. new_xeno.name = name new_xeno.real_name = real_name if(mind) - mind.transfer_to(new_xeno) mind.name = new_xeno.real_name + mind.transfer_to(new_xeno) qdel(src) /mob/living/carbon/alien/can_hold_items(obj/item/I)