From de891f6de830fd05c1c6bcaa664f5202617bbee0 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:47:17 -0500 Subject: [PATCH] throw a stack trace if a light has no source atom (#24882) --- code/modules/lighting/lighting_source.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/lighting/lighting_source.dm b/code/modules/lighting/lighting_source.dm index 0e48a81cce46..dcc6c89cdaa4 100644 --- a/code/modules/lighting/lighting_source.dm +++ b/code/modules/lighting/lighting_source.dm @@ -41,6 +41,10 @@ source_turf = top_atom pixel_turf = get_turf_pixel(top_atom) || source_turf + if(!pixel_turf) + stack_trace("[src] had no pixel turf assigned to it") + qdel(src) + return // Get us out of here before we do unneded operations light_power = source_atom.light_power light_range = source_atom.light_range