Merge pull request #13745 from Arturlang/soulstone_references

Adds more sanity to construct soul returning
This commit is contained in:
DeltaFire
2020-12-11 00:42:30 +01:00
committed by GitHub
@@ -67,8 +67,12 @@
CR.button.screen_loc = "6:[pos],4:-2"
CR.button.moved = "6:[pos],4:-2"
/mob/living/simple_animal/hostile/construct/Destroy()
original_mind = null
. = ..()
/mob/living/simple_animal/hostile/construct/death()
if(original_mind)
if(original_mind && !(QDELETED(original_mind)))
transfer_ckey(original_mind.current)
..()