diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index da3bbb701..23f7860de 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -246,9 +246,9 @@ defs } | defs def | defs obj_def - | error END { current_class = 0; yyerrok; } - | error ';' { yyerrok; } - | error '}' { yyerrok; } + | error END { current_class = 0; yyerrok; current_symtab = pr.symtab; } + | error ';' { yyerrok; current_symtab = pr.symtab; } + | error '}' { yyerrok; current_symtab = pr.symtab; } ; def