From f52202ecbc0ac4d4b781e2e14d6a99bf75dc4835 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 11 Jan 2014 17:35:22 -0600 Subject: Remove extra client_t::csUpdated[] slot sv.configstrings[] is limited to 0 to MAX_CONFIGSTRINGS-1, make client_t::csUpdated[] the same. --- src/server/server.h | 2 +- src/server/sv_init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/server.h b/src/server/server.h index a0831da9..59b3ff8b 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -199,7 +199,7 @@ typedef struct client_s { #endif int oldServerTime; - qboolean csUpdated[MAX_CONFIGSTRINGS+1]; + qboolean csUpdated[MAX_CONFIGSTRINGS]; } client_t; //============================================================================= diff --git a/src/server/sv_init.c b/src/server/sv_init.c index 8f4f1ca6..71e5f717 100644 --- a/src/server/sv_init.c +++ b/src/server/sv_init.c @@ -90,7 +90,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; -- cgit