This commit is contained in:
aozhiwei 2023-12-28 14:22:00 +08:00
parent fc558fafe5
commit 1028d48eef

View File

@ -2315,8 +2315,8 @@ int Room::InitWithMobaBattle(long ip_saddr, int socket_handle, std::shared_ptr<c
}; };
for (size_t i = 0; i < 2; ++i) { for (size_t i = 0; i < 2; ++i) {
auto team = room_teams.at(i); auto team = room_teams.at(i);
for (size_t ii = team->GetMemberNum(); ii < MAX_TEAM_NUM; ++ii) { if (team->GetMemberNum() < MAX_TEAM_NUM) {
CreateAndroid(MAX_TEAM_NUM - team->GetMemberNum());
} }
} }
return 0; return 0;