mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 19:29:18 +00:00
Compare commits
3 commits
803616a005
...
8490dfd294
Author | SHA1 | Date | |
---|---|---|---|
|
8490dfd294 | ||
|
d505a0a38d | ||
|
e74924ec07 |
32 changed files with 2293 additions and 2290 deletions
|
@ -1934,6 +1934,9 @@ local function query_cached(query: ecs_query_data_t)
|
||||||
|
|
||||||
local function on_delete_callback(archetype)
|
local function on_delete_callback(archetype)
|
||||||
local i = table.find(archetypes, archetype) :: number
|
local i = table.find(archetypes, archetype) :: number
|
||||||
|
if i == nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
local n = #archetypes
|
local n = #archetypes
|
||||||
archetypes[i] = archetypes[n]
|
archetypes[i] = archetypes[n]
|
||||||
archetypes[n] = nil
|
archetypes[n] = nil
|
||||||
|
|
Loading…
Reference in a new issue