mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-26 18:00:02 +00:00
Should begin to allocate above current max_id
Some checks are pending
Some checks are pending
This commit is contained in:
parent
52435e62a2
commit
fd2c57fe17
1 changed files with 2 additions and 1 deletions
|
@ -750,7 +750,7 @@ local function world_range(world: ecs_world_t, range_begin: number, range_end: n
|
||||||
local dense_array = entity_index.dense_array
|
local dense_array = entity_index.dense_array
|
||||||
local sparse_array = entity_index.sparse_array
|
local sparse_array = entity_index.sparse_array
|
||||||
|
|
||||||
for i = max_id, range_begin do
|
for i = max_id + 1, range_begin do
|
||||||
dense_array[i] = i
|
dense_array[i] = i
|
||||||
sparse_array[i] = {
|
sparse_array[i] = {
|
||||||
dense = 0
|
dense = 0
|
||||||
|
@ -2485,6 +2485,7 @@ local function world_new()
|
||||||
for i = EcsRest + 1, ecs_max_tag_id do
|
for i = EcsRest + 1, ecs_max_tag_id do
|
||||||
-- Initialize built-in components
|
-- Initialize built-in components
|
||||||
entity_index_new_id(entity_index)
|
entity_index_new_id(entity_index)
|
||||||
|
print("hm...", i)
|
||||||
end
|
end
|
||||||
|
|
||||||
world_add(self, EcsName, EcsComponent)
|
world_add(self, EcsName, EcsComponent)
|
||||||
|
|
Loading…
Reference in a new issue