mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Remove redundant check in entity_index_try_get_any
This commit is contained in:
parent
4435d718a7
commit
5454e79a4a
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