Skip to content

Commit

Permalink
fix(light): don't process deleted lights
Browse files Browse the repository at this point in the history
  • Loading branch information
kreeperHLC authored Oct 18, 2023
1 parent d096d3f commit 1b11f7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/controllers/subsystems/lighting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ SUBSYSTEM_DEF(lighting)
for(i in 1 to length(queue))
var/datum/light_source/L = queue[i]

if(QDELETED(L))
continue

if(L.check() || L.destroyed || L.force_update)
L.remove_lum()
if(!L.destroyed)
Expand Down Expand Up @@ -113,6 +116,9 @@ SUBSYSTEM_DEF(lighting)
for(i in 1 to length(queue))
var/datum/lighting_corner/C = queue[i]

if(QDELETED(L))

Check failure on line 119 in code/controllers/subsystems/lighting.dm

View workflow job for this annotation

GitHub Actions / DreamChecker

undefined var: "L"

Check failure on line 119 in code/controllers/subsystems/lighting.dm

View workflow job for this annotation

GitHub Actions / DreamChecker

undefined var: "L"
continue

C.needs_update = FALSE
C.update_overlays()

Expand Down

0 comments on commit 1b11f7d

Please sign in to comment.