From ec23d55f9dc9ccc786b1e97d550e25444cd98c57 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Tue, 20 Jan 2026 19:57:49 +1100 Subject: [PATCH] Fix bug about passing objs to functions --- src/interpreter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interpreter.c b/src/interpreter.c index fe76d0c..0e98a30 100644 --- a/src/interpreter.c +++ b/src/interpreter.c @@ -382,6 +382,7 @@ GroundStruct parseStruct(GroundProgram* in, GroundScope* scope, size_t errorOffs gv.type = CUSTOM; gv.data.customVal = malloc(sizeof(GroundObject)); *gv.data.customVal = createObject(*gstruct); + gv.customType = gstruct; break; } case NONE: { @@ -1981,6 +1982,7 @@ GroundValue interpretGroundInstruction(GroundInstruction inst, GroundScope* scop gv.type = CUSTOM; gv.data.customVal = malloc(sizeof(GroundObject)); *gv.data.customVal = createObject(*gstruct); + gv.customType = gstruct; break; } case NONE: {