mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
add LOAD for TYPE_FUNCTION as LOAD_FNC so we can actually access function fields
This commit is contained in:
parent
6b1a0541c9
commit
39f37262db
1 changed files with 6 additions and 5 deletions
11
ir.c
11
ir.c
|
@ -1446,11 +1446,12 @@ ir_value* ir_block_create_load_from_ent(ir_block *self, const char *label, ir_va
|
|||
|
||||
switch (outype)
|
||||
{
|
||||
case TYPE_FLOAT: op = INSTR_LOAD_F; break;
|
||||
case TYPE_VECTOR: op = INSTR_LOAD_V; break;
|
||||
case TYPE_STRING: op = INSTR_LOAD_S; break;
|
||||
case TYPE_FIELD: op = INSTR_LOAD_FLD; break;
|
||||
case TYPE_ENTITY: op = INSTR_LOAD_ENT; break;
|
||||
case TYPE_FLOAT: op = INSTR_LOAD_F; break;
|
||||
case TYPE_VECTOR: op = INSTR_LOAD_V; break;
|
||||
case TYPE_STRING: op = INSTR_LOAD_S; break;
|
||||
case TYPE_FIELD: op = INSTR_LOAD_FLD; break;
|
||||
case TYPE_ENTITY: op = INSTR_LOAD_ENT; break;
|
||||
case TYPE_FUNCTION: op = INSTR_LOAD_FNC; break;
|
||||
#if 0
|
||||
case TYPE_POINTER: op = INSTR_LOAD_I; break;
|
||||
case TYPE_INTEGER: op = INSTR_LOAD_I; break;
|
||||
|
|
Loading…
Reference in a new issue