mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 01:20:04 +00:00
Compare commits
1 commit
8bab4acce0
...
dd9e690518
Author | SHA1 | Date | |
---|---|---|---|
|
dd9e690518 |
1 changed files with 3 additions and 0 deletions
|
@ -172,6 +172,9 @@ 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