diff --git a/distr/flecs.c b/distr/flecs.c index a5975bc4f..5fffb6688 100644 --- a/distr/flecs.c +++ b/distr/flecs.c @@ -17290,6 +17290,7 @@ ecs_cmd_t* flecs_cmd_new( ecs_cmd_t *cmd = ecs_vec_append_t(&stage->allocator, &stage->cmd->queue, ecs_cmd_t); cmd->is._1.value = NULL; + cmd->id = 0; cmd->next_for_entity = 0; cmd->entry = NULL; cmd->system = stage->system; diff --git a/src/stage.c b/src/stage.c index f27f554a2..b4f97b460 100644 --- a/src/stage.c +++ b/src/stage.c @@ -24,6 +24,7 @@ ecs_cmd_t* flecs_cmd_new( ecs_cmd_t *cmd = ecs_vec_append_t(&stage->allocator, &stage->cmd->queue, ecs_cmd_t); cmd->is._1.value = NULL; + cmd->id = 0; cmd->next_for_entity = 0; cmd->entry = NULL; cmd->system = stage->system;