From 1719ea7dc65bd5766c087b935e06475bc07bb041 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 10 Dec 2004 21:32:54 +0000 Subject: [PATCH] Try not to allow anyone to crash us with corrupt mvds. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@618 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/net_preparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/server/net_preparse.c b/engine/server/net_preparse.c index 89cef1259..f4c6fa2c7 100644 --- a/engine/server/net_preparse.c +++ b/engine/server/net_preparse.c @@ -1402,7 +1402,8 @@ void NPP_MVDFlush(void) v = buffer[2] | (buffer[3]<<8) | (buffer[4]<<16) | (buffer[5]<<24); s = buffer[1]; - sv.recordedplayer[sv.lastto].stats[s] = v; + if (sv.lastto < 32) //dem_multicast could be used at the wrong time... + sv.recordedplayer[sv.lastto].stats[s] = v; ignoreprotocol=true; }