From: Wolfgang (Blub) Bumiller Date: Sun, 12 Aug 2012 09:39:43 +0000 (+0200) Subject: fixed: ast_member needs to allow type_vector instead of type_float as base X-Git-Tag: 0.1-rc1~345^2 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=fc7d32a7156a7819d724c04af781a1559c336164 fixed: ast_member needs to allow type_vector instead of type_float as base --- 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);