]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.c
ast_unary needs to set its type
[xonotic/gmqcc.git] / parser.c
index 3608171b31855f8e4dee2aaf4283f3ade7b45a39..a2b3f060eed51e5edc7bbd7f1876b2fa7fd6f686 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1182,7 +1182,7 @@ static ast_expression* parser_expression_leave(parser_t *parser, bool stopatcomm
                     olast = NULL;
             }
 
-            if (op->id == opid1('.')) {
+            if (op->id == opid1('.') && opts_standard == COMPILER_GMQCC) {
                 /* for gmqcc standard: open up the namespace of the previous type */
                 ast_expression *prevex = sy.out[sy.out_count-1].out;
                 if (!prevex) {