mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +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;
|
||||
case ev_field:
|
||||
def = ED_FieldAtOfs (pr, val->integer_var);
|
||||
if (def)
|
||||
dsprintf (line, ".%s", PR_GetString (pr, def->s_name));
|
||||
else
|
||||
dsprintf (line, ".<$%04x>", val->integer_var);
|
||||
break;
|
||||
case ev_void:
|
||||
return "void";
|
||||
|
|
Loading…
Reference in a new issue