redeclare component_index as ct_idx

This commit is contained in:
kurokuukyo 2026-04-20 20:17:00 -04:00
parent 681065e3e7
commit 3150a8bd7a

View file

@ -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