Fix bug when defining functions and structs

This commit is contained in:
2026-01-24 15:05:05 +11:00
parent ca0b87aacd
commit bb0baba167

View File

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