mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 11:19:17 +00:00
Compare commits
2 commits
3b1ecadbe5
...
3e5f20f96c
Author | SHA1 | Date | |
---|---|---|---|
|
3e5f20f96c | ||
|
0b6bfea5c8 |
1 changed files with 2 additions and 2 deletions
|
@ -733,7 +733,7 @@ local function world_target(world: world, entity: i53, relation: i53, index: num
|
|||
local nth = index or 0
|
||||
|
||||
if nth >= count then
|
||||
nth = nth + count + 1
|
||||
return nil
|
||||
end
|
||||
|
||||
nth = archetype.types[nth + idr.records[archetype_id]]
|
||||
|
@ -2759,7 +2759,7 @@ local function world_new()
|
|||
local nth = index or 0
|
||||
|
||||
if nth >= count then
|
||||
nth = nth + count + 1
|
||||
return nil
|
||||
end
|
||||
|
||||
nth = archetype.types[nth + idr.records[archetype_id]]
|
||||
|
|
Loading…
Reference in a new issue