Sync to released Jecs 0.6.0-nightly.20250606T001110Z (#86)

Reviewed-on: #86
This commit is contained in:
marked 2025-06-06 02:11:30 +02:00
parent d318a47b81
commit f03f262957
8 changed files with 22 additions and 19 deletions

View file

@ -1934,6 +1934,9 @@ local function query_cached(query: ecs_query_data_t)
local function on_delete_callback(archetype)
local i = table.find(archetypes, archetype) :: number
if i == nil then
return
end
local n = #archetypes
archetypes[i] = archetypes[n]
archetypes[n] = nil