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:
parent
ee3f85cf55
commit
426dc07e53
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue