]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Remove constant string literal for correction check, use parse_tokval of the current...
authorDale Weiler <killfieldengine@gmail.com>
Fri, 4 Jan 2013 11:58:27 +0000 (11:58 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 4 Jan 2013 11:58:27 +0000 (11:58 +0000)
parser.c

index 2d7ebe3941b6010999cd99ec82690ef11c16280b..6c507d1aeb4a24a83ac50b5778cc55c727a93777 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1643,7 +1643,7 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
                      * other things as well.
                      */
                     for (i = 0; i < vec_size(parser->correct_variables); i++) {
-                        correct = correct_str(parser->correct_variables[i], "ello");
+                        correct = correct_str(parser->correct_variables[i], parser_tokval(parser));
                         if (strcmp(correct, parser_tokval(parser))) {
                             break;
                         } else if (correct) {