From af94c577ad2de316cd3ab48e8e896dc7a12db62e Mon Sep 17 00:00:00 2001 From: ihatethisengine <115417687+ihatethisengine@users.noreply.github.com> Date: Tue, 27 Jun 2023 22:30:20 +0300 Subject: [PATCH] Update dropship_equipment.dm --- code/modules/cm_marines/dropship_equipment.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/cm_marines/dropship_equipment.dm b/code/modules/cm_marines/dropship_equipment.dm index 8d25662cc193..89d33134bdb8 100644 --- a/code/modules/cm_marines/dropship_equipment.dm +++ b/code/modules/cm_marines/dropship_equipment.dm @@ -277,7 +277,8 @@ QDEL_NULL(deployed_turret.linked_cam) /obj/structure/dropship_equipment/sentry_holder/Destroy() - QDEL_NULL(deployed_turret.linked_cam) + if(deployed_turret) + QDEL_NULL(deployed_turret.linked_cam) . = ..()