mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
tuple isnt optional
This commit is contained in:
parent
0256c765a0
commit
0f67cb1c86
1 changed files with 2 additions and 2 deletions
|
@ -763,7 +763,7 @@ local function preparedQuery(compatibleArchetypes: { Archetype },
|
|||
return setmetatable(query, query) :: any
|
||||
end
|
||||
|
||||
function World.query(world: World, ...: number?): Query
|
||||
function World.query(world: World, ...: number): Query
|
||||
-- breaking?
|
||||
if (...) == nil then
|
||||
error("Missing components")
|
||||
|
@ -773,7 +773,7 @@ function World.query(world: World, ...: number?): Query
|
|||
local compatibleArchetypes: { Archetype } = {}
|
||||
local length = 0
|
||||
|
||||
local components: { number? } = { ... }
|
||||
local components: { number } = { ... }
|
||||
local archetypes: { Archetype } = world.archetypes :: any
|
||||
|
||||
local firstArchetypeMap: ArchetypeMap
|
||||
|
|
Loading…
Reference in a new issue