Sync to upstream Jecs 0.6.0-nightly.20250606T001110Z

This commit is contained in:
forgejo-actions 2025-06-06 00:11:28 +00:00 committed by github-actions[bot]
parent d318a47b81
commit 9b586f9c87
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