mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Gracefully handle undefined symbols in entity field expressions.
This commit is contained in:
parent
fbea276ede
commit
a3c1f339fc
1 changed files with 2 additions and 0 deletions
|
@ -876,6 +876,8 @@ field_expr (expr_t *e1, expr_t *e2)
|
|||
t1 = get_type (e1);
|
||||
if (t1->type == ev_entity) {
|
||||
t2 = get_type (e2);
|
||||
if (e2->type == ex_error)
|
||||
return e2;
|
||||
if (t2->type == ev_field) {
|
||||
e = new_binary_expr ('.', e1, e2);
|
||||
e->e.expr.type = t2->t.fldptr.type;
|
||||
|
|
Loading…
Reference in a new issue