fix last commit

This commit is contained in:
lustlion 2022-03-17 11:52:58 +01:00
parent 410c00dcd4
commit a01599c001

View File

@ -78,10 +78,10 @@ end
--------------- ---------------
function cleanDeadLights() function cleanDeadLights()
for i=1, #LoadedObjects.Entities do for i=1, #LoadedObjects.Lights do
enty = LoadedObjects.Entities[i] light = LoadedObjects.Lights[i]
if enty.dead then if light.dead then
table.remove(LoadedObjects.Entities,i) table.remove(LoadedObjects.Lights,i)
end end
end end
end end