]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
initialize max_param_count to 1 so vararg functions don't try to create an accessor...
authorWolfgang Bumiller <blub@speed.at>
Wed, 16 Jan 2013 08:37:32 +0000 (09:37 +0100)
committerWolfgang Bumiller <blub@speed.at>
Wed, 16 Jan 2013 08:37:32 +0000 (09:37 +0100)
parser.c

index 3bd1073382a5fd006f83c825dfa5dd16c7a9eff2..10ddbdcb606c4b96b54ff32733f420b2a26317ba 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5708,6 +5708,8 @@ bool parser_init()
     if (OPTS_FLAG(UNTYPED_NIL))
         util_htset(parser->htglobals, "nil", (void*)parser->nil);
 
+    parser->max_param_count = 1;
+
     parser->const_vec[0] = ast_value_new(empty_ctx, "<vector.x>", TYPE_NOEXPR);
     parser->const_vec[1] = ast_value_new(empty_ctx, "<vector.y>", TYPE_NOEXPR);
     parser->const_vec[2] = ast_value_new(empty_ctx, "<vector.z>", TYPE_NOEXPR);