mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 11:19:17 +00:00
Compare commits
1 commit
3e5f20f96c
...
3b1ecadbe5
Author | SHA1 | Date | |
---|---|---|---|
|
3b1ecadbe5 |
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
|
local nth = index or 0
|
||||||
|
|
||||||
if nth >= count then
|
if nth >= count then
|
||||||
return nil
|
nth = nth + count + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
nth = archetype.types[nth + idr.records[archetype_id]]
|
nth = archetype.types[nth + idr.records[archetype_id]]
|
||||||
|
@ -2759,7 +2759,7 @@ local function world_new()
|
||||||
local nth = index or 0
|
local nth = index or 0
|
||||||
|
|
||||||
if nth >= count then
|
if nth >= count then
|
||||||
return nil
|
nth = nth + count + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
nth = archetype.types[nth + idr.records[archetype_id]]
|
nth = archetype.types[nth + idr.records[archetype_id]]
|
||||||
|
|
Loading…
Reference in a new issue