From 038b94fed5bb94a7a0beefa916cb51a59305bd48 Mon Sep 17 00:00:00 2001 From: HowManySmall Date: Sat, 4 May 2024 16:29:20 -0600 Subject: [PATCH] less indexing --- lib/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/init.lua b/lib/init.lua index 152e732..dc02aef 100644 --- a/lib/init.lua +++ b/lib/init.lua @@ -468,13 +468,13 @@ function World.query(world: World, ...: i53): Query preparedQuery.__index = preparedQuery function preparedQuery:without(...) - local components = {...} + local withoutComponents = {...} for i = #compatibleArchetypes, 1, -1 do local archetype = compatibleArchetypes[i][1] local records = archetype.records local shouldRemove = false - for _, componentId in components do + for _, componentId in withoutComponents do if records[componentId] then shouldRemove = true break