From 95a9942bdcd0c46055632fbbfe56db2231371f15 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Fri, 15 Jun 2018 04:48:10 -0500 Subject: [PATCH] [MIRROR] Fixes cloning not working on those qdel'd but not yet destroyed by the garbage collector (#7105) * Cloning deletion fix (#38438) * Fixes cloning not working on those qdel'd but not yet destroyed by the garbage collector --- code/game/machinery/cloning.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index f07002236d..77d0981fd9 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -133,7 +133,7 @@ clonemind = locate(mindref) in SSticker.minds if(!istype(clonemind)) //not a mind return FALSE - if(clonemind.current) + if(!QDELETED(clonemind.current)) if(clonemind.current.stat != DEAD) //mind is associated with a non-dead body return FALSE if(clonemind.current.suiciding) // Mind is associated with a body that is suiciding.