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:
Yamagi Burmeister 2016-12-17 10:00:40 +01:00
parent 63c71b4e4f
commit c61bff46d7

View file

@ -350,6 +350,7 @@ ED_CallSpawn(edict_t *ent)
if (!ent->classname)
{
gi.dprintf("ED_CallSpawn: NULL classname\n");
G_FreeEdict(ent);
return;
}