diff --git a/libs/ui/imui.c b/libs/ui/imui.c index 2423e03a0..f8487a7a6 100644 --- a/libs/ui/imui.c +++ b/libs/ui/imui.c @@ -242,7 +242,7 @@ prune_objects (imui_ctx_t *ctx) if ((*s)->frame_count == ctx->frame_count) { s = &(*s)->next; } else { - ECS_DelEntity (ctx->csys.reg, (*s)->entity); + View_Delete (View_FromEntity (ctx->vsys, (*s)->entity)); Hash_Del (ctx->tab, (*s)->label + (*s)->key_offset); imui_state_free (ctx, *s); }