From a889d7a14fe6f96ca8453a71759bbdacfa3c7ab7 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 11 Jan 2014 17:35:22 -0600 Subject: [PATCH] Remove extra client_t::csUpdated[] slot sv.configstrings[] is limited to 0 to MAX_CONFIGSTRINGS-1, make client_t::csUpdated[] the same. --- code/server/server.h | 2 +- code/server/sv_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/server/server.h b/code/server/server.h index b577591f..407d6ab6 100644 --- a/code/server/server.h +++ b/code/server/server.h @@ -194,7 +194,7 @@ typedef struct client_s { #endif int oldServerTime; - qboolean csUpdated[MAX_CONFIGSTRINGS+1]; + qboolean csUpdated[MAX_CONFIGSTRINGS]; #ifdef LEGACY_PROTOCOL qboolean compat; diff --git a/code/server/sv_init.c b/code/server/sv_init.c index 71c789f6..a99b01f4 100644 --- a/code/server/sv_init.c +++ b/code/server/sv_init.c @@ -82,7 +82,7 @@ void SV_UpdateConfigstrings(client_t *client) { int index; - for( index = 0; index <= MAX_CONFIGSTRINGS; index++ ) { + for( index = 0; index < MAX_CONFIGSTRINGS; index++ ) { // if the CS hasn't changed since we went to CS_PRIMED, ignore if(!client->csUpdated[index]) continue;