the first fielddef isn't always null (esp with qfcc), so check to see if it

needs printing too
This commit is contained in:
Bill Currie 2003-03-05 18:18:42 +00:00
parent 6c028a57bb
commit bfaef7747b

View file

@ -367,8 +367,10 @@ ED_Print (progs_t *pr, edict_t *ed)
}
Sys_Printf ("\nEDICT %i:\n", NUM_FOR_BAD_EDICT (pr, ed));
for (i = 1; i < pr->progs->numfielddefs; i++) {
for (i = 0; i < pr->progs->numfielddefs; i++) {
d = &pr->pr_fielddefs[i];
if (!d->s_name) // null field def (probably 1st)
continue;
name = PR_GetString (pr, d->s_name);
if (name[strlen (name) - 2] == '_')
continue; // skip _x, _y, _z vars