mirror of
https://github.com/Ukendio/jecs.git
synced 2026-05-13 14:24:14 +00:00
Proper indexing in ECS_PAIR_SECOND
This commit is contained in:
parent
2c9f3dad34
commit
62aefff319
1 changed files with 1 additions and 1 deletions
|
|
@ -3341,7 +3341,7 @@ local function world_new(DEBUG: boolean?)
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
local target = entity_index_get_alive(world.entity_index,
|
local target = entity_index_get_alive(world.entity_index,
|
||||||
ECS_PAIR_SECOND(nth))
|
ECS_PAIR_SECOND(archetype.types[nth + idr.records[archetype_id]]))
|
||||||
nth += 1
|
nth += 1
|
||||||
return target
|
return target
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue