Copy the entity leaf leak from qw.
This commit is contained in:
parent
a12eb940f1
commit
b5f2da0b78
|
@ -348,6 +348,7 @@ link_t **sv_link_prev;
|
||||||
void
|
void
|
||||||
SV_UnlinkEdict (edict_t *ent)
|
SV_UnlinkEdict (edict_t *ent)
|
||||||
{
|
{
|
||||||
|
free_edict_leafs (&SVdata (ent)->leafs);
|
||||||
if (!SVdata (ent)->area.prev)
|
if (!SVdata (ent)->area.prev)
|
||||||
return; // not linked in anywhere
|
return; // not linked in anywhere
|
||||||
RemoveLink (&SVdata (ent)->area);
|
RemoveLink (&SVdata (ent)->area);
|
||||||
|
|
Loading…
Reference in New Issue