allow a named def with 0 offset to be printed

This commit is contained in:
Bill Currie 2003-04-22 05:39:12 +00:00
parent f842d98964
commit 47d4fec5ec

View file

@ -55,14 +55,14 @@ dump_globals (progs_t *pr)
for (i = 0; i < pr->progs->numglobaldefs; i++) {
ddef_t *def = &pr->pr_globaldefs[i];
if (!def->type && !def->ofs && !def->s_name)
continue;
name = PR_GetString (pr, def->s_name);
type = pr_type_name[def->type & ~DEF_SAVEGLOBAL];
saveglobal = (def->type & DEF_SAVEGLOBAL) != 0;
offset = def->ofs;
if (!offset)
continue;
comment = " ";
if (def->type == ev_func) {