mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
Check for TYPE_FIELD in load_from_ent
This commit is contained in:
parent
18969b1713
commit
ddbd460331
1 changed files with 4 additions and 0 deletions
4
ir.c
4
ir.c
|
@ -964,6 +964,10 @@ ir_value* ir_block_create_load_from_ent(ir_block *self, const char *label, ir_va
|
|||
if (ent->vtype != TYPE_ENTITY)
|
||||
return NULL;
|
||||
|
||||
/* at some point we could redirect for TYPE_POINTER... but that could lead to carelessness */
|
||||
if (field->vtype != TYPE_FIELD)
|
||||
return NULL;
|
||||
|
||||
switch (outype)
|
||||
{
|
||||
case TYPE_FLOAT: op = INSTR_LOAD_F; break;
|
||||
|
|
Loading…
Reference in a new issue