fix last commit
This commit is contained in:
parent
410c00dcd4
commit
a01599c001
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user