0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-20 17:31:08 +00:00

fix a goof with the number of global defs

This commit is contained in:
Bill Currie 2002-06-09 03:41:11 +00:00
parent ee3f85cf55
commit 426dc07e53

View file

@ -130,8 +130,10 @@ WriteData (int crc)
FILE *h;
int i;
globals = calloc (pr.num_globals, sizeof (ddef_t));
fields = calloc (pr.num_globals, sizeof (ddef_t));
for (i = 0, def = pr.def_head; def; def = def->def_next)
i++;
globals = calloc (i, sizeof (ddef_t));
fields = calloc (i, sizeof (ddef_t));
for (def = pr.def_head; def; def = def->def_next) {
if (def->scope)