Fix crash for overfull solo servers: One more team

This commit is contained in:
def 2013-12-22 01:52:40 +01:00
parent ad724453ad
commit 2e8c3cfb66
2 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ CGameTeams::CGameTeams(CGameContext *pGameContext) :
void CGameTeams::Reset()
{
m_Core.Reset();
for (int i = 0; i < MAX_CLIENTS; ++i)
for (int i = 0; i < MAX_CLIENTS + 1; ++i)
{
m_TeamState[i] = TEAMSTATE_EMPTY;
m_TeeFinished[i] = false;

View file

@ -7,10 +7,10 @@
class CGameTeams
{
int m_TeamState[MAX_CLIENTS];
int m_MembersCount[MAX_CLIENTS];
bool m_TeeFinished[MAX_CLIENTS];
bool m_TeamLocked[MAX_CLIENTS];
bool m_TeeFinished[MAX_CLIENTS+1];
int m_TeamState[MAX_CLIENTS+1];
int m_MembersCount[MAX_CLIENTS+1];
bool m_TeamLocked[MAX_CLIENTS+1];
class CGameContext * m_pGameContext;