diff --git a/src/interpreter.c b/src/interpreter.c index bd89520..272a66b 100644 --- a/src/interpreter.c +++ b/src/interpreter.c @@ -450,7 +450,7 @@ GroundValue interpretGroundProgram(GroundProgram* in, GroundScope* inScope) { .type = STRUCTVAL, .data.structVal = malloc(sizeof(GroundStruct)) }; - *gv.data.structVal = parseStruct(&gp, errorOffset); + *gv.data.structVal = parseStruct(&gp, &scope, errorOffset); addVariable(scope.variables, name, gv); }