summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-01-11 17:35:22 -0600
committerTim Angus <tim@ngus.net>2014-06-17 17:43:38 +0100
commitf52202ecbc0ac4d4b781e2e14d6a99bf75dc4835 (patch)
treeabd2af638907745ff8c806117e9385d7cc43e902 /src/server
parentc9b4d07602c220fb23e49c6493b1d955eebd90ea (diff)
Remove extra client_t::csUpdated[] slot
sv.configstrings[] is limited to 0 to MAX_CONFIGSTRINGS-1, make client_t::csUpdated[] the same.
Diffstat (limited to 'src/server')
-rw-r--r--src/server/server.h2
-rw-r--r--src/server/sv_init.c2
2 files changed, 2 insertions, 2 deletions
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;