mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +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);
|
||||
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;
|
||||
case ev_void:
|
||||
return "void";
|
||||
|
|
Loading…
Reference in a new issue