diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 726b6a827b14..89a7cdf596c3 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -355,10 +355,21 @@ GLOBAL_LIST_INIT(frozen_items, list(SQUAD_MARINE_1 = list(), SQUAD_MARINE_2 = li var/mob/living/carbon/human/cryo_pod = occupant if(cryo_pod.record_id_ref) + var/datum/data/record/medical = GLOB.data_core.medical[cryo_pod.record_id_ref] + var/datum/data/record/general = GLOB.data_core.general[cryo_pod.record_id_ref] + var/datum/data/record/security = GLOB.data_core.security[cryo_pod.record_id_ref] + GLOB.data_core.medical[cryo_pod.record_id_ref] = null GLOB.data_core.general[cryo_pod.record_id_ref] = null GLOB.data_core.security[cryo_pod.record_id_ref] = null + if (medical) + QDEL_NULL(medical) + if (general) + QDEL_NULL(general) + if (security) + QDEL_NULL(security) + icon_state = "body_scanner_open" set_light(0) diff --git a/code/modules/admin/player_panel/actions/physical.dm b/code/modules/admin/player_panel/actions/physical.dm index 8bf875d63d1c..ef76d7ca3094 100644 --- a/code/modules/admin/player_panel/actions/physical.dm +++ b/code/modules/admin/player_panel/actions/physical.dm @@ -107,10 +107,21 @@ mob_cryo = target if(mob_cryo) + var/datum/data/record/medical = GLOB.data_core.medical[mob_cryo.record_id_ref] + var/datum/data/record/general = GLOB.data_core.general[mob_cryo.record_id_ref] + var/datum/data/record/security = GLOB.data_core.security[mob_cryo.record_id_ref] + GLOB.data_core.medical[mob_cryo.record_id_ref] = null GLOB.data_core.general[mob_cryo.record_id_ref] = null GLOB.data_core.security[mob_cryo.record_id_ref] = null + if (medical) + QDEL_NULL(medical) + if (general) + QDEL_NULL(general) + if (security) + QDEL_NULL(security) + if(target.key) target.ghostize(FALSE)