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");