This commit is contained in:
aozhiwei 2022-10-21 21:34:29 +08:00
parent 2ec2f440c1
commit 45c81d34c3
2 changed files with 3 additions and 3 deletions

View File

@ -794,10 +794,10 @@ int MatchTeam::GetSlotNum()
bool MatchTeam::HaveEmptySlot() bool MatchTeam::HaveEmptySlot()
{ {
return false; return GetEmptySlotNum() > 0;
} }
int MatchTeam::GetFreeSlotNum() int MatchTeam::GetEmptySlotNum()
{ {
return 0; return 0;
} }

View File

@ -75,7 +75,7 @@ class MatchTeam
std::shared_ptr<RawTeamMember> GetOwner() { return first_member_; }; std::shared_ptr<RawTeamMember> GetOwner() { return first_member_; };
int GetSlotNum(); int GetSlotNum();
bool HaveEmptySlot(); bool HaveEmptySlot();
int GetFreeSlotNum(); int GetEmptySlotNum();
private: private:
void Update(); void Update();