Lock works for single player teams

This commit is contained in:
def 2014-09-26 23:47:25 +02:00
parent f589463697
commit 896a6fda9b

View file

@ -177,7 +177,8 @@ void CGameTeams::SetForceCharacterTeam(int ClientID, int Team)
{
int OldTeam = m_Core.Team(ClientID);
ForceLeaveTeam(ClientID);
if (Team != m_Core.Team(ClientID))
ForceLeaveTeam(ClientID);
m_Core.Team(ClientID, Team);