From: Wolfgang (Blub) Bumiller Date: Wed, 22 Aug 2012 10:59:52 +0000 (+0200) Subject: Pop off all the locals after a function X-Git-Tag: 0.1-rc1~106 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=330a801ae954d17da6da99fb7dc4bc4bbd3139a3;p=xonotic%2Fgmqcc.git Pop off all the locals after a function --- diff --git a/parser.c b/parser.c index 9db84bb..30dd9ed 100644 --- a/parser.c +++ b/parser.c @@ -2448,6 +2448,8 @@ nextvar: return false; } parser->function = old; + while (parser->locals_count) + parser_pop_local(parser); if (!block) { ast_value_delete(typevar);