This commit is contained in:
aozhiwei 2021-09-29 14:01:59 +08:00
parent 2dc3809af9
commit f8b25a0657

View File

@ -109,7 +109,7 @@ void MatchTeam::_CMMatchCancel(f8::MsgHdr& hdr, const cs::CMMatchCancel& msg)
void MatchTeam::_CMMatchChoose(f8::MsgHdr& hdr, const cs::CMMatchChoose& msg) void MatchTeam::_CMMatchChoose(f8::MsgHdr& hdr, const cs::CMMatchChoose& msg)
{ {
auto member = GetMemberBySocket(hdr.socket_handle); auto member = GetMemberBySocket(hdr.socket_handle);
if (member) { if (member && phase_ == kMatchChoose) {
member->msg.set_hero_id(msg.hero_id()); member->msg.set_hero_id(msg.hero_id());
*member->msg.mutable_weapons() = msg.weapons(); *member->msg.mutable_weapons() = msg.weapons();
*member->msg.mutable_skins() = msg.skins(); *member->msg.mutable_skins() = msg.skins();