Proper indexing in ECS_PAIR_SECOND

This commit is contained in:
kurokuukyo 2026-04-20 17:03:09 -04:00
parent 2c9f3dad34
commit 62aefff319

View file

@ -3341,7 +3341,7 @@ local function world_new(DEBUG: boolean?)
return nil
end
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
return target
end