From 8885a4d6140ee6b00633ac418a78f139fea41aaa Mon Sep 17 00:00:00 2001 From: kurokuukyo Date: Mon, 20 Apr 2026 17:58:03 -0400 Subject: [PATCH] pull idr.records index out of iterator --- src/jecs.luau | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jecs.luau b/src/jecs.luau index 08f8dca..d16ee4e 100755 --- a/src/jecs.luau +++ b/src/jecs.luau @@ -3334,6 +3334,7 @@ local function world_new(DEBUG: boolean?) return NOOP :: () -> i53 end + local idr_record = idr.records[archetype_id] local nth = 0 return function(): i53? @@ -3341,7 +3342,7 @@ local function world_new(DEBUG: boolean?) return nil end local target = entity_index_get_alive(world.entity_index, - ECS_PAIR_SECOND(archetype.types[nth + idr.records[archetype_id]])) + ECS_PAIR_SECOND(archetype.types[nth + idr_record])) nth += 1 return target end