]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fixed: ast_member needs to allow type_vector instead of type_float as base
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 09:39:43 +0000 (11:39 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 09:39:43 +0000 (11:39 +0200)
ast.c

diff --git a/ast.c b/ast.c
index 117f845ae0bc816b40a99f5a3ab0a9741ace5ac6..5dfad22a408a57c84f939ab6c3d6e0022b3e318b 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -315,7 +315,7 @@ ast_member* ast_member_new(lex_ctx ctx, ast_expression *owner, unsigned int fiel
         return NULL;
     }
 
-    if (owner->expression.vtype != TYPE_FLOAT &&
+    if (owner->expression.vtype != TYPE_VECTOR &&
         owner->expression.vtype != TYPE_FIELD) {
         printf("ast_member on an invalid owner of type %i\n", (int)owner->expression.vtype);
         mem_d(self);