fix fraglog sequence count crash (which resulted in SZ_GetSpace: overflow without allowoverflow set). Reported by OneManClan.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4710 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-07-12 03:59:04 +00:00
parent adf3384730
commit d710d945d0

View file

@ -5364,14 +5364,13 @@ void SV_InitLocal (void)
// init fraglog stuff
svs.logsequence = 1;
svs.logtime = realtime;
svs.log[0].data = svs.log_buf[0];
svs.log[0].maxsize = sizeof(svs.log_buf[0]);
svs.log[0].cursize = 0;
svs.log[0].allowoverflow = true;
svs.log[1].data = svs.log_buf[1];
svs.log[1].maxsize = sizeof(svs.log_buf[1]);
svs.log[1].cursize = 0;
svs.log[1].allowoverflow = true;
for (i = 0; i < FRAGLOG_BUFFERS; i++)
{
svs.log[i].data = svs.log_buf[i];
svs.log[i].maxsize = sizeof(svs.log_buf[i]);
svs.log[i].cursize = 0;
svs.log[i].allowoverflow = true;
}
svs.free_lagged_packet = NULL;
}