mirror of
				https://github.com/Ukendio/jecs.git
				synced 2025-11-03 18:39:19 +00:00 
			
		
		
		
	Remove redundant check in entity_index_try_get_any (#203)
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	
This commit is contained in:
		
							parent
							
								
									4435d718a7
								
							
						
					
					
						commit
						a703e2c361
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -172,9 +172,6 @@ end
 | 
			
		|||
 | 
			
		||||
local function entity_index_try_get_any(entity_index: EntityIndex, entity: number): Record?
 | 
			
		||||
	local r = entity_index.sparse_array[ECS_ENTITY_T_LO(entity)]
 | 
			
		||||
	if not r then
 | 
			
		||||
		return nil
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if not r or r.dense == 0 then
 | 
			
		||||
		return nil
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue