Remove extra client_t::csUpdated[] slot

sv.configstrings[] is limited to 0 to MAX_CONFIGSTRINGS-1, make client_t::csUpdated[] the same.
This commit is contained in:
Zack Middleton 2014-01-11 17:35:22 -06:00
parent 4520857fc9
commit a889d7a14f
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;