mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 16:10:53 +00:00
don't seg if the field def can't be found
This commit is contained in:
parent
920b80fd8c
commit
432ae86cca
1 changed files with 4 additions and 1 deletions
|
@ -499,7 +499,10 @@ value_string (progs_t *pr, etype_t type, pr_type_t *val)
|
||||||
break;
|
break;
|
||||||
case ev_field:
|
case ev_field:
|
||||||
def = ED_FieldAtOfs (pr, val->integer_var);
|
def = ED_FieldAtOfs (pr, val->integer_var);
|
||||||
dsprintf (line, ".%s", PR_GetString (pr, def->s_name));
|
if (def)
|
||||||
|
dsprintf (line, ".%s", PR_GetString (pr, def->s_name));
|
||||||
|
else
|
||||||
|
dsprintf (line, ".<$%04x>", val->integer_var);
|
||||||
break;
|
break;
|
||||||
case ev_void:
|
case ev_void:
|
||||||
return "void";
|
return "void";
|
||||||
|
|
Loading…
Reference in a new issue