mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
Locals of type .vector will now also properly generate all 3 locals
This commit is contained in:
parent
a27750966f
commit
42b9848375
1 changed files with 2 additions and 0 deletions
2
ast.c
2
ast.c
|
@ -966,6 +966,8 @@ bool ast_local_codegen(ast_value *self, ir_function *func, bool param)
|
|||
v = ir_function_create_local(func, self->name, self->expression.vtype, param);
|
||||
if (!v)
|
||||
return false;
|
||||
if (self->expression.vtype == TYPE_FIELD)
|
||||
v->fieldtype = self->expression.next->expression.vtype;
|
||||
v->context = ast_ctx(self);
|
||||
|
||||
/* A constant local... hmmm...
|
||||
|
|
Loading…
Reference in a new issue