last commit
This commit is contained in:
lustlion 2022-03-17 11:53:48 +01:00
parent a01599c001
commit 9a20b172af
2 changed files with 2 additions and 2 deletions

View File

@ -309,7 +309,7 @@ end
function cleanDeadEntities()
for i=1, #LoadedObjects.Entities do
enty = LoadedObjects.Entities[i]
if enty.dead then
if enty and enty.dead then
table.remove(LoadedObjects.Entities,i)
end
end

View File

@ -80,7 +80,7 @@ end
function cleanDeadLights()
for i=1, #LoadedObjects.Lights do
light = LoadedObjects.Lights[i]
if light.dead then
if light and light.dead then
table.remove(LoadedObjects.Lights,i)
end
end