mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-05 15:31:16 +00:00
free entities that didn't get initialized (lost this in the format conversion)
This commit is contained in:
parent
d5f886c334
commit
c20a553e1a
1 changed files with 4 additions and 0 deletions
|
@ -372,6 +372,7 @@ ED_InitEntity (progs_t *pr, plitem_t *entity, edict_t *ent)
|
||||||
const char *field_name;
|
const char *field_name;
|
||||||
const char *value;
|
const char *value;
|
||||||
int count;
|
int count;
|
||||||
|
int init = 0;
|
||||||
|
|
||||||
keys = PL_D_AllKeys (entity);
|
keys = PL_D_AllKeys (entity);
|
||||||
count = PL_A_NumObjects (keys);
|
count = PL_A_NumObjects (keys);
|
||||||
|
@ -389,8 +390,11 @@ ED_InitEntity (progs_t *pr, plitem_t *entity, edict_t *ent)
|
||||||
if (!ED_ParseEpair (pr, ent->v, field, value))
|
if (!ED_ParseEpair (pr, ent->v, field, value))
|
||||||
PR_Error (pr, "ED_InitEntity: parse error");
|
PR_Error (pr, "ED_InitEntity: parse error");
|
||||||
}
|
}
|
||||||
|
init = 1;
|
||||||
}
|
}
|
||||||
PL_Free (keys);
|
PL_Free (keys);
|
||||||
|
if (!init)
|
||||||
|
ent->free = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue