don't seg if the field def can't be found

This commit is contained in:
Bill Currie 2004-02-07 01:57:31 +00:00
parent 920b80fd8c
commit 432ae86cca

View file

@ -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);
if (def)
dsprintf (line, ".%s", PR_GetString (pr, def->s_name)); 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";