This commit is contained in:
aozhiwei 2023-12-27 13:53:19 +08:00
parent 46c6eaaaeb
commit a3ddd4bbf1

View File

@ -1970,9 +1970,9 @@ void Human::SendMobaTeamNotify()
return; return;
} }
cs::SMSyncMobaTeam notify_msg; cs::SMSyncMobaTeam notify_msg;
{ std::vector<Team*> teams = {room->GetMobaTeamA(), room->GetMobaTeamB()};
for (auto team : teams) {
auto team_pb = notify_msg.add_team_list(); auto team_pb = notify_msg.add_team_list();
Team* team = room->GetMobaTeamA();
team_pb->set_team_uuid(a8::XValue(team->GetTeamId()).GetString()); team_pb->set_team_uuid(a8::XValue(team->GetTeamId()).GetString());
team->TraverseMembers team->TraverseMembers
( (