diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 79ce2713e..1d84a711f 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -695,6 +695,7 @@ statement_block current_scope->num_defs += num_defs; *current_scope->tail = defs; while (*current_scope->tail) { + (*current_scope->tail)->scope = current_scope; current_scope->tail = &(*current_scope->tail)->def_next; } }