mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
IR generation of vector-fields put the 'main' vector offset at the wrong position - fixed that
This commit is contained in:
parent
56c23dc11e
commit
8b168077c7
1 changed files with 1 additions and 1 deletions
2
ir.c
2
ir.c
|
@ -2659,6 +2659,7 @@ static bool ir_builder_gen_field(ir_builder *self, ir_value *field)
|
|||
if (code_fields_add(fld) < 0)
|
||||
return false;
|
||||
|
||||
ir_value_code_setaddr(field, code_globals_elements);
|
||||
if (!code_globals_add(fld.offset))
|
||||
return false;
|
||||
if (fld.type == TYPE_VECTOR) {
|
||||
|
@ -2668,7 +2669,6 @@ static bool ir_builder_gen_field(ir_builder *self, ir_value *field)
|
|||
return false;
|
||||
}
|
||||
|
||||
ir_value_code_setaddr(field, code_globals_add(fld.offset));
|
||||
return field->code.globaladdr >= 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue