mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
fix store op for nil as parameter
This commit is contained in:
parent
12d87fba1b
commit
0c673dfebb
1 changed files with 4 additions and 0 deletions
4
ir.c
4
ir.c
|
@ -2932,6 +2932,8 @@ tailcall:
|
|||
|
||||
if (param->vtype == TYPE_FIELD)
|
||||
stmt.opcode = field_store_instr[param->fieldtype];
|
||||
else if (param->vtype == TYPE_NIL)
|
||||
stmt.opcode = INSTR_STORE_V;
|
||||
else
|
||||
stmt.opcode = type_store_instr[param->vtype];
|
||||
stmt.o1.u1 = ir_value_code_addr(param);
|
||||
|
@ -2959,6 +2961,8 @@ tailcall:
|
|||
|
||||
if (param->vtype == TYPE_FIELD)
|
||||
stmt.opcode = field_store_instr[param->fieldtype];
|
||||
else if (param->vtype == TYPE_NIL)
|
||||
stmt.opcode = INSTR_STORE_V;
|
||||
else
|
||||
stmt.opcode = type_store_instr[param->vtype];
|
||||
stmt.o1.u1 = ir_value_code_addr(param);
|
||||
|
|
Loading…
Reference in a new issue