This commit is contained in:
aozhiwei 2022-10-22 09:19:19 +08:00
parent e0f214dc51
commit 1bad5e4bbf

View File

@ -808,5 +808,6 @@ int MatchTeam::GetEmptySlotNum()
for (auto& pair : combined_team_hash_) {
alloced_slot_num += pair.second->GetInitMemberNum();
}
return 0;
int empty_slot_num = std::max(0, GetSlotNum() - alloced_slot_num);
return empty_slot_num;
}