mirror of
https://github.com/Ukendio/jecs.git
synced 2026-05-13 14:24:14 +00:00
redeclare component_index as ct_idx
This commit is contained in:
parent
681065e3e7
commit
3150a8bd7a
1 changed files with 3 additions and 2 deletions
|
|
@ -3311,7 +3311,7 @@ local function world_new(DEBUG: boolean?)
|
||||||
end
|
end
|
||||||
|
|
||||||
local NOOP = NOOP :: () -> i53
|
local NOOP = NOOP :: () -> i53
|
||||||
|
|
||||||
local function world_targets(world: world, entity: i53, relation: i53): () -> i53?
|
local function world_targets(world: world, entity: i53, relation: i53): () -> i53?
|
||||||
local record = entity_index_try_get_unsafe(entity)
|
local record = entity_index_try_get_unsafe(entity)
|
||||||
if not record then
|
if not record then
|
||||||
|
|
@ -3324,7 +3324,8 @@ local function world_new(DEBUG: boolean?)
|
||||||
end
|
end
|
||||||
|
|
||||||
local r = ECS_PAIR(relation, EcsWildcard)
|
local r = ECS_PAIR(relation, EcsWildcard)
|
||||||
local idr = world.component_index[r]
|
local ct_idx = world.component_index
|
||||||
|
local idr = ct_idx[r]
|
||||||
|
|
||||||
if not idr then
|
if not idr then
|
||||||
return NOOP
|
return NOOP
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue