ui/common/context.c

changeset 60
ee4e4742391e
parent 56
294d5515583a
--- a/ui/common/context.c	Wed Oct 23 21:46:43 2024 +0200
+++ b/ui/common/context.c	Sun Oct 27 18:24:37 2024 +0100
@@ -209,7 +209,7 @@
 UiVar* uic_create_value_var(UiContext* ctx, void* value) {
     UiVar *var = (UiVar*)ui_malloc(ctx, sizeof(UiVar));
     var->from = NULL;
-    var->from_ctx = NULL;
+    var->from_ctx = ctx;
     var->value = value;
     var->type = UI_VAR_SPECIAL;
     return var;

mercurial