Skip to content

Commit

Permalink
throw a stack trace if a light has no source atom (ParadiseSS13#24882)
Browse files Browse the repository at this point in the history
  • Loading branch information
GDNgit authored Apr 8, 2024
1 parent b6be540 commit de891f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/lighting/lighting_source.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de891f6

Please sign in to comment.