From fc7d32a7156a7819d724c04af781a1559c336164 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 12 Aug 2012 11:39:43 +0200 Subject: [PATCH] fixed: ast_member needs to allow type_vector instead of type_float as base --- ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast.c b/ast.c index 117f845..5dfad22 100644 --- 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); -- 2.39.2