mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
fixed: ast_member needs to allow type_vector instead of type_float as base
This commit is contained in:
parent
028543db8c
commit
fc7d32a715
1 changed files with 1 additions and 1 deletions
2
ast.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue