Fix saving in solo teams

This commit is contained in:
def 2014-09-29 19:32:43 +02:00
parent 1c954c168f
commit 90518f951d

View file

@ -179,10 +179,16 @@ void CGameTeams::SetForceCharacterTeam(int ClientID, int Team)
if (Team != m_Core.Team(ClientID))
ForceLeaveTeam(ClientID);
else
{
m_TeeFinished[ClientID] = false;
if (Count(m_Core.Team(ClientID)) > 0)
m_MembersCount[m_Core.Team(ClientID)]--;
}
m_Core.Team(ClientID, Team);
if (m_Core.Team(ClientID) != TEAM_SUPER && m_Core.Team(ClientID) != Team)
if (m_Core.Team(ClientID) != TEAM_SUPER)
m_MembersCount[m_Core.Team(ClientID)]++;
if (Team != TEAM_SUPER && (m_TeamState[Team] == TEAMSTATE_EMPTY || m_TeamLocked[Team]))
{