summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 5f4feb8..db67fa2 100644
--- a/eval.c
+++ b/eval.c
@@ -483,7 +483,7 @@ ut_execute_local(struct ut_state *state, uint32_t off)
if (label)
rv = ut_setval(
- state->stack.scope[state->stack.off-1], label->val,
+ ut_getscope(state, 0), label->val,
as->tree.operand[1] ? ut_execute_op(state, as->tree.operand[1]) : NULL);
as = ut_get_op(state, as->tree.next);