]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
apparently #0 is a valid builtin number, used for some NULL funcs
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 20:25:18 +0000 (21:25 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 20:25:18 +0000 (21:25 +0100)
parser.c

index 3e1bad925b4fccc312840d91cd33625fb47ba74b..32199740f6ab2a84d56d110021d452f25f9a7f47 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3952,7 +3952,7 @@ skipvar:
                 parseerror(parser, "builtin number must be an integer constant");
                 break;
             }
-            if (parser_token(parser)->constval.i <= 0) {
+            if (parser_token(parser)->constval.i < 0) {
                 parseerror(parser, "builtin number must be an integer greater than zero");
                 break;
             }