Don't try to write freed entities to the client

This commit is contained in:
Adam Olsen 2001-08-14 11:15:47 +00:00
parent dd16a1c4d5
commit b277881832

View file

@ -530,6 +530,9 @@ SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg)
for (e = MAX_CLIENTS + 1, ent = EDICT_NUM (&sv_pr_state, e); e < sv.num_edicts;
e++, ent = NEXT_EDICT (&sv_pr_state, ent)) {
if (ent->free)
continue;
// ignore ents without visible models
if (!SVfloat (ent, modelindex) || !*PR_GetString (&sv_pr_state, SVstring (ent, model)))
continue;