mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
Pop off all the locals after a function
This commit is contained in:
parent
54bdd06aab
commit
330a801ae9
1 changed files with 2 additions and 0 deletions
2
parser.c
2
parser.c
|
@ -2448,6 +2448,8 @@ nextvar:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
parser->function = old;
|
parser->function = old;
|
||||||
|
while (parser->locals_count)
|
||||||
|
parser_pop_local(parser);
|
||||||
|
|
||||||
if (!block) {
|
if (!block) {
|
||||||
ast_value_delete(typevar);
|
ast_value_delete(typevar);
|
||||||
|
|
Loading…
Reference in a new issue