mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Fix types on idr
This commit is contained in:
parent
a1a3e14a1a
commit
0cb7558fbb
1 changed files with 3 additions and 2 deletions
|
@ -503,7 +503,7 @@ end
|
||||||
|
|
||||||
local function id_record_ensure(world: World, id: number): IdRecord
|
local function id_record_ensure(world: World, id: number): IdRecord
|
||||||
local componentIndex = world.componentIndex
|
local componentIndex = world.componentIndex
|
||||||
local idr = componentIndex[id]
|
local idr: IdRecord = componentIndex[id]
|
||||||
|
|
||||||
if not idr then
|
if not idr then
|
||||||
local flags = ECS_ID_MASK
|
local flags = ECS_ID_MASK
|
||||||
|
@ -548,7 +548,8 @@ local function id_record_ensure(world: World, id: number): IdRecord
|
||||||
on_set = on_set,
|
on_set = on_set,
|
||||||
on_remove = on_remove,
|
on_remove = on_remove,
|
||||||
},
|
},
|
||||||
} :: IdRecord
|
}
|
||||||
|
|
||||||
componentIndex[id] = idr
|
componentIndex[id] = idr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue