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;