From 258ed1f5f3fefa01ab13d3a26e618fef6b787504 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Wed, 8 Feb 2017 12:33:52 -0500 Subject: [PATCH] Re-fix for #2312 The implant is stored as a string-reference, not an actual pointer, so you have to use locate() to resolve it into an actual pointer to see if that matches the implant we're removing. Fixes #2312 Fixes https://github.com/VOREStation/VOREStation/issues/196 --- code/game/machinery/cryopod.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index ceb5570ff21..e7fed68d5ff 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -413,7 +413,7 @@ if(istype(W,/obj/item/weapon/implant/health)) for(var/obj/machinery/computer/cloning/com in world) for(var/datum/dna2/record/R in com.records) - if(R.implant == W) + if(locate(R.implant) == W) qdel(R) qdel(W)