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