]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.c
an = before an { is also always required when the declared variable is not a function...
[xonotic/gmqcc.git] / 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;