mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix segfault in dereferencing undefined field containers
This commit is contained in:
parent
c296514b95
commit
e7b4eedc07
1 changed files with 2 additions and 1 deletions
|
@ -1162,9 +1162,10 @@ field_expr (expr_t *e1, expr_t *e2)
|
|||
const type_t *t1, *t2;
|
||||
expr_t *e;
|
||||
|
||||
t1 = get_type (e1);
|
||||
if (e1->type == ex_error)
|
||||
return e1;
|
||||
t1 = unalias_type (get_type (e1));
|
||||
t1 = unalias_type (t1);
|
||||
if (t1->type == ev_entity) {
|
||||
symbol_t *field = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue