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 (#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 function entity_index_try_get_any(entity_index: EntityIndex, entity: number): Record?
|
||||||
local r = entity_index.sparse_array[ECS_ENTITY_T_LO(entity)]
|
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
|
if not r or r.dense == 0 then
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue