From b1c636b3f604d3a3456e4efb978b51a1afcd68ca Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 15 May 2021 11:24:29 -0400 Subject: [PATCH] Help beam_components qdel properly Port of https://github.com/VOREStation/VOREStation/pull/10323 --- .../objects/effects/temporary_visuals/projectiles/tracer.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/game/objects/effects/temporary_visuals/projectiles/tracer.dm b/code/game/objects/effects/temporary_visuals/projectiles/tracer.dm index 864d0de0fc..c5bf2674f7 100644 --- a/code/game/objects/effects/temporary_visuals/projectiles/tracer.dm +++ b/code/game/objects/effects/temporary_visuals/projectiles/tracer.dm @@ -2,8 +2,7 @@ var/list/beam_components = list() /datum/beam_components_cache/Destroy() - for(var/component in beam_components) - qdel(component) + QDEL_LIST_NULL(beam_components) return ..() /proc/generate_tracer_between_points(datum/point/starting, datum/point/ending, datum/beam_components_cache/beam_components, beam_type, color, qdel_in = 5, light_range = 2, light_color_override, light_intensity = 1, instance_key) //Do not pass z-crossing points as that will not be properly (and likely will never be properly until it's absolutely needed) supported!