From 19e99274fd80fabef32aae8d10b3d2fc005db29d Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 30 Sep 2004 22:40:24 +0000 Subject: [PATCH] should make clients more stable... though I'm not sure if this is a good thing. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@263 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_ents.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index 7f26ad532..2d1c63abb 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -577,6 +577,8 @@ entity_state_t *CL_FindOldPacketEntity(int num) int pnum; entity_state_t *s1; packet_entities_t *pack; + if (!cls.netchan.incoming_sequence) + return NULL; pack = &cl.frames[(cls.netchan.incoming_sequence-1)&UPDATE_MASK].packet_entities; for (pnum=0 ; pnumnum_entities ; pnum++)