mirror of
https://github.com/yquake2/rogue.git
synced 2025-02-17 01:21:06 +00:00
Don't leak unknown entities.
I don't think that this has a visible effect, because there shouldn't be any unknown entities in maps creates with the official entities.def. This was reported by maraakate in quake2 issue #160.
This commit is contained in:
parent
63c71b4e4f
commit
c61bff46d7
1 changed files with 1 additions and 0 deletions
|
@ -350,6 +350,7 @@ ED_CallSpawn(edict_t *ent)
|
||||||
if (!ent->classname)
|
if (!ent->classname)
|
||||||
{
|
{
|
||||||
gi.dprintf("ED_CallSpawn: NULL classname\n");
|
gi.dprintf("ED_CallSpawn: NULL classname\n");
|
||||||
|
G_FreeEdict(ent);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue