A small fix type thing.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1840 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-01-11 22:22:14 +00:00
parent bc745ba504
commit 1f1a157ddd

View file

@ -523,7 +523,10 @@ char *PR_ValueString (progfuncs_t *progfuncs, etype_t type, eval_t *val)
break;
case ev_field:
fielddef = ED_FieldAtOfs (progfuncs, val->_int );
sprintf (line, ".%s (%i)", fielddef->name, val->_int);
if (!fielddef)
sprintf (line, ".??? (%i)", val->_int);
else
sprintf (line, ".%s (%i)", fielddef->name, val->_int);
break;
case ev_void:
sprintf (line, "void type");