fixed: ast_member needs to allow type_vector instead of type_float as base

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-12 11:39:43 +02:00
parent 028543db8c
commit fc7d32a715

2
ast.c
View file

@ -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);