mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
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:
parent
adf3384730
commit
d710d945d0
1 changed files with 7 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue