throw a stack trace if a light has no source atom (#24882)

This commit is contained in:
GDN
2024-04-08 16:47:17 -05:00
committed by GitHub
parent b6be540b43
commit de891f6de8
+4
View File
@@ -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