Compare commits

..

3 commits

Author SHA1 Message Date
Ukendio
8490dfd294 Prevent partial matching of destroyed archetype
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run
2025-06-06 00:38:58 +02:00
Luka
d505a0a38d
fix line endings (#234) 2025-06-05 22:48:13 +02:00
Marcus
e74924ec07
Fix line endings (#233) 2025-06-05 22:00:29 +02:00
32 changed files with 2293 additions and 2290 deletions

View file

@ -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