]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
ast_member's are now kept, since they are used like variables: multiple times
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 14:38:50 +0000 (16:38 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 14:38:50 +0000 (16:38 +0200)
ast.c

diff --git a/ast.c b/ast.c
index 6ba79dbb11e5ad4087934896b2528587c4b0307d..8f65b8130c9b146e984ea9edad8c76ae9159d38f 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -388,6 +388,7 @@ ast_member* ast_member_new(lex_ctx ctx, ast_expression *owner, unsigned int fiel
     }
 
     ast_expression_init((ast_expression*)self, (ast_expression_codegen*)&ast_member_codegen);
+    self->expression.node.keep = true; /* keep */
 
     if (owner->expression.vtype == TYPE_VECTOR) {
         self->expression.vtype = TYPE_FLOAT;