diff --git a/src/compile.c b/src/compile.c index 5e6edfc..a07b015 100644 --- a/src/compile.c +++ b/src/compile.c @@ -427,7 +427,7 @@ char* compile(tSyntaxElement* syntaxtree) { compile_exit_tag(&result); - string_append_free(&result,compile(token->next->next)); + string_append_free(&result,compile(token->next->next->content.syntax)); if (token->next->next->next != NULL) { @@ -435,7 +435,7 @@ char* compile(tSyntaxElement* syntaxtree) { string_append(&result, "else"); compile_exit_tag(&result); - string_append_free(&result,compile(token->next->next->next)); + string_append_free(&result,compile(token->next->next->next->content.syntax)); }