]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
revert 1 of the error messages
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 13:37:54 +0000 (14:37 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 13:37:54 +0000 (14:37 +0100)
parser.c

index 331f35be52dddf3f9a8e5c9c66927a637967c10b..3fb9111d768633d773ad9075194fbecedc0ae0f7 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1697,8 +1697,7 @@ static bool parser_leaveblock(parser_t *parser)
     util_htdel(vec_last(parser->variables));
     vec_pop(parser->variables);
     if (!vec_size(parser->_blocklocals)) {
-        parser->errors++;
-        compile_error(vec_last(parser->_block_ctx), "internal error: parser_leaveblock with no block (2)");
+        parseerror(parser, "internal error: parser_leaveblock with no block (2)");
         return false;
     }