mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 12:10:48 +00:00
the first fielddef isn't always null (esp with qfcc), so check to see if it
needs printing too
This commit is contained in:
parent
6c028a57bb
commit
bfaef7747b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue