mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-10 06:42:21 +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)
|
||||
{
|
||||
gi.dprintf("ED_CallSpawn: NULL classname\n");
|
||||
G_FreeEdict(ent);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue