mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
When storing to a vector member as part of an entity field we must use STOREP
This commit is contained in:
parent
8f7242d314
commit
5d5b9a379a
1 changed files with 3 additions and 0 deletions
3
parser.c
3
parser.c
|
@ -953,6 +953,9 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy)
|
|||
}
|
||||
}
|
||||
(void)check_write_to(ctx, exprs[0]);
|
||||
/* When we're a vector of part of an entity field we use STOREP */
|
||||
if (ast_istype(exprs[0], ast_member) && ast_istype(((ast_member*)exprs[0])->owner, ast_entfield))
|
||||
assignop = INSTR_STOREP_F;
|
||||
out = (ast_expression*)ast_store_new(ctx, assignop, exprs[0], exprs[1]);
|
||||
break;
|
||||
case opid3('+','+','P'):
|
||||
|
|
Loading…
Reference in a new issue