]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix alias type check
authorDale Weiler <killfieldengine@gmail.com>
Thu, 26 Sep 2013 12:09:55 +0000 (08:09 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 26 Sep 2013 12:09:55 +0000 (08:09 -0400)
parser.c

index 839e089ec871820f2f6fcb8e4ea4db2d5ba7d5ae..bfc8be4410d2d17e369e10dc25fe93467997e6d7 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5308,7 +5308,7 @@ static bool parse_variable(parser_t *parser, ast_block *localblock, bool nofield
                             return false;
                         }
 
-                        if (var->expression.vtype != find->vtype) {
+                        if (!ast_compare_type((ast_expression*)var, find)) {
                             char ty1[1024];
                             char ty2[1024];