From dc34cd9cda55ec4bea5de8b969e5a9491374578b Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 11 Mar 2006 17:22:22 +0000 Subject: [PATCH] fix bug in [515]'s csqc code - it was using the literal number 64 for the max players, not MAX_SCOREBOARD as it should git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6101 d7cf8633-e32d-0410-b094-e92efae38249 --- protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol.c b/protocol.c index 91e0b7cb..508b8802 100644 --- a/protocol.c +++ b/protocol.c @@ -243,7 +243,7 @@ void EntityFrameQuake_ISeeDeadEntities(void) static mempool_t *sv2csqc = NULL; int csqc_clent = 0; sizebuf_t *sv2csqcbuf = NULL; -static unsigned char *sv2csqcents_version[64]; +static unsigned char *sv2csqcents_version[MAX_SCOREBOARD]; void EntityFrameCSQC_ClearVersions (void) { @@ -252,7 +252,7 @@ void EntityFrameCSQC_ClearVersions (void) Mem_FreePool(&sv2csqc); sv2csqc = NULL; } - memset(sv2csqcents_version, 0, 64*sizeof(unsigned char *)); + memset(sv2csqcents_version, 0, MAX_SCOREBOARD*sizeof(unsigned char *)); } void EntityFrameCSQC_InitClientVersions (int client, qboolean clear) -- 2.39.2