[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
This commit is contained in:
CitadelStationBot
2018-06-15 04:48:10 -05:00
committed by kevinz000
parent 55628dca90
commit 95a9942bdc
+1 -1
View File
@@ -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.