]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
an = before an { is also always required when the declared variable is not a function...
authorWolfgang Bumiller <wry.git@bumiller.com>
Fri, 26 Apr 2013 08:31:38 +0000 (10:31 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Fri, 26 Apr 2013 08:31:38 +0000 (10:31 +0200)
parser.c

index 7fba786c9cead285969038375c0e801cbc4f24b3..506f8d201fd812fccafce45c03930a29b5c178af 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5623,7 +5623,7 @@ skipvar:
             }
         }
 
-        if (parser->tok != '{') {
+        if (parser->tok != '{' || var->expression.vtype != TYPE_FUNCTION) {
             if (parser->tok != '=') {
                 parseerror(parser, "missing semicolon or initializer, got: `%s`", parser_tokval(parser));
                 break;