Unlink the entity's efrags when removing the entity.

This commit is contained in:
Bill Currie 2010-12-03 17:15:11 +09:00
parent a6941e27ef
commit 3b08ac89d0
1 changed files with 2 additions and 0 deletions

View File

@ -389,6 +389,8 @@ CL_ParsePacketEntities (qboolean delta)
}
if (word & U_REMOVE) { // Clear the entity
entity_t *ent = &cl_packet_ents[newnum];
if (ent->efrag)
R_RemoveEfrags (ent);
memset (ent, 0, sizeof (entity_t));
oldindex++;
continue;