Adds some sanity to lighting_source.dm (#17106)

* a little bit of sanity should fix it

* instead goes for .Remove(src) as that has an internal check to see if the list has the object
This commit is contained in:
MadmanMartian
2018-01-17 16:20:06 +00:00
committed by DamianX
parent 331877f64e
commit 87d1c5e7e4

View File

@@ -278,7 +278,8 @@
L = affecting_turfs - turfs // Now-gone turfs, remove us from the affecting lights.
affecting_turfs -= L
for (var/turf/T in L)
T.affecting_lights -= src
if(T.affecting_lights)
T.affecting_lights.Remove(src)
for (var/datum/lighting_corner/C in corners - effect_str) // New corners
C.affecting += src