Fix get_team() sometimes being wrong for dead players (bug 4656, r=dvander).

This commit is contained in:
arkshine 2013-02-12 23:17:24 -08:00
parent 59fc122986
commit b0fe6c83e2

View File

@ -109,6 +109,7 @@ void Client_TeamInfo(void* mValue)
char* msg = (char*)mValue; char* msg = (char*)mValue;
g_players[index].team.assign(msg); g_players[index].team.assign(msg);
g_teamsIds.registerTeam(msg, -1); g_teamsIds.registerTeam(msg, -1);
g_players[index].teamId = g_teamsIds.findTeamId(msg);
break; break;
} }
} }