From 3e15fcd0ae6ce27440f138693bb918c49bbcca9e Mon Sep 17 00:00:00 2001 From: HowManySmall Date: Sat, 4 May 2024 17:25:28 -0600 Subject: [PATCH] mayhaps a regression, we shall see --- lib/init.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/init.lua b/lib/init.lua index 50e1eb1..b3e31bc 100644 --- a/lib/init.lua +++ b/lib/init.lua @@ -500,20 +500,18 @@ function World.query(world: World, ...: i53): Query function preparedQuery:__iter() return function() local archetype = compatibleArchetype[1] - local entities = archetype.entities - local row = next(entities, lastRow) + local row = next(archetype.entities, lastRow) while row == nil do lastArchetype, compatibleArchetype = next(compatibleArchetypes, lastArchetype) if lastArchetype == nil then return end archetype = compatibleArchetype[1] - entities = archetype.entities - row = next(entities, row) + row = next(archetype.entities, row) end lastRow = row - local entityId = entities[row :: number] + local entityId = archetype.entities[row :: number] local columns = archetype.columns local tr = compatibleArchetype[2]