mirror of
https://github.com/Ukendio/jecs.git
synced 2025-11-14 23:42:53 +00:00
Compare commits
1 commit
0760517078
...
731ea960ef
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
731ea960ef |
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 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