quakeforge/libs/ecs
Bill Currie ce7c2183d3 [ecs] Delay component destruction
Copy the component out of the pool so that it can be overwritten now,
thus removing it from the pool, before actually destroying the component
so that any recursive removals of the same component don't mess up the
indices, and also don't try to remove the component from the same
entity.

This fixes a rather sneaky component leak caused by said recursion.
2024-01-06 02:11:31 +09:00
..
test [build] Implement tracy memory zones 2024-01-05 11:50:48 +09:00
component.c [ecs] Organize headers and code 2022-12-13 15:31:35 +09:00
ecs.c [ecs] Pass the registry in to the component destroy function 2024-01-03 12:39:54 +09:00
entity.c [ecs] Delay component destruction 2024-01-06 02:11:31 +09:00
hierarchy.c [ecs] Make hierarchy ownership of entities optional 2024-01-05 11:50:48 +09:00
Makemodule.am [build] Fix some library install issues 2023-04-20 15:15:12 +09:00
subpool.c [ecs] Move correct number of subpool ranges 2023-07-11 00:06:21 +09:00