module: fix removeComponent, add TODO about stack space
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c7f39f0dbe
commit
80780054b5
1 changed files with 2 additions and 1 deletions
|
|
@ -339,6 +339,7 @@ pub fn Modules(comptime modules: anytype) type {
|
|||
// TODO: parallel / multi-threaded dispatch
|
||||
// TODO: PGO
|
||||
|
||||
// TODO(important): we may exceed stack space here, consider moving to heap.
|
||||
var buf: [8 * 1024 * 1024]u8 = undefined;
|
||||
while (true) {
|
||||
// Dequeue the next event
|
||||
|
|
@ -530,7 +531,7 @@ pub fn ModSet(comptime modules: anytype) type {
|
|||
|
||||
/// Removes an entity.
|
||||
pub inline fn removeEntity(m: *@This(), entity: EntityID) !void {
|
||||
try m.entities.removeEntity(entity);
|
||||
try m.entities.remove(entity);
|
||||
}
|
||||
|
||||
/// Sets the named component to the specified value for the given entity,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue