From bb0baba167a35e6a922284f8a0f1e03bd812e613 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sat, 24 Jan 2026 15:05:05 +1100 Subject: [PATCH] Fix bug when defining functions and structs --- src/interpreter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interpreter.c b/src/interpreter.c index dc4956e..7565ea0 100644 --- a/src/interpreter.c +++ b/src/interpreter.c @@ -571,6 +571,7 @@ GroundValue interpretGroundProgram(GroundProgram* in, GroundScope* inScope) { count--; } } + i--; } if (in->instructions[i].type == STRUCT) { int count = 1; @@ -586,6 +587,7 @@ GroundValue interpretGroundProgram(GroundProgram* in, GroundScope* inScope) { count--; } } + i--; } if (in->instructions[i].type == PAUSE || instructionsToPause == 0) { printf("Paused execution\n");