From a34299e28e5ef31b05c5d5f55fbf8a318e1c4b63 Mon Sep 17 00:00:00 2001 From: Gamer025 <33846895+Gamer025@users.noreply.github.com> Date: Sun, 10 Jan 2021 21:27:37 +0100 Subject: [PATCH] Correctly transfer skillchips when ahealing someone (#56064) When ahealing someone via the player panel their skillchips weren't transfered correctly. The actually skillchip object was left in the old brain and eventually hard deleted. This caused a runtime when ahealing someone a second time (after the harddel). This then caused the target to actually have 2 brains because of the runtime while ahealing --- code/modules/mob/living/brain/brain_item.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/brain/brain_item.dm b/code/modules/mob/living/brain/brain_item.dm index 592ba96ee67..76311a730a4 100644 --- a/code/modules/mob/living/brain/brain_item.dm +++ b/code/modules/mob/living/brain/brain_item.dm @@ -288,6 +288,8 @@ // Directly change the new holding_brain. skillchip.holding_brain = replacement_brain + //And move the actual obj into the new brain (contents) + skillchip.forceMove(replacement_brain) // Directly add them to the skillchip list in the new brain. LAZYADD(replacement_brain.skillchips, skillchip)