diff --git a/src/game/server/teams.cpp b/src/game/server/teams.cpp index 7a70e8655..56120fd6a 100644 --- a/src/game/server/teams.cpp +++ b/src/game/server/teams.cpp @@ -11,7 +11,7 @@ CGameTeams::CGameTeams(CGameContext *pGameContext) : void CGameTeams::Reset() { m_Core.Reset(); - for (int i = 0; i < MAX_CLIENTS + 1; ++i) + for (int i = 0; i < MAX_CLIENTS; ++i) { m_TeamState[i] = TEAMSTATE_EMPTY; m_TeeFinished[i] = false; diff --git a/src/game/server/teams.h b/src/game/server/teams.h index 1b572ba13..bdd2d7f5c 100644 --- a/src/game/server/teams.h +++ b/src/game/server/teams.h @@ -7,10 +7,10 @@ class CGameTeams { - bool m_TeeFinished[MAX_CLIENTS+1]; - int m_TeamState[MAX_CLIENTS+1]; - int m_MembersCount[MAX_CLIENTS+1]; - bool m_TeamLocked[MAX_CLIENTS+1]; + int m_TeamState[MAX_CLIENTS]; + int m_MembersCount[MAX_CLIENTS]; + bool m_TeeFinished[MAX_CLIENTS]; + bool m_TeamLocked[MAX_CLIENTS]; class CGameContext * m_pGameContext;