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
This commit is contained in:
Gamer025
2021-01-10 20:27:37 +00:00
committed by GitHub
parent dd5fe5e641
commit a34299e28e
@@ -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)