mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
throw a stack trace if a light has no source atom (#24882)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user