forked from ground/cground
Fix bug when defining functions and structs
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user