Copy the entity leaf leak from qw.

This commit is contained in:
Bill Currie 2012-11-29 10:15:52 +09:00
parent a12eb940f1
commit b5f2da0b78

View file

@ -348,6 +348,7 @@ link_t **sv_link_prev;
void
SV_UnlinkEdict (edict_t *ent)
{
free_edict_leafs (&SVdata (ent)->leafs);
if (!SVdata (ent)->area.prev)
return; // not linked in anywhere
RemoveLink (&SVdata (ent)->area);