This commit is contained in:
aozhiwei 2020-06-18 19:10:27 +08:00
parent 1f4ff08d57
commit cb6dad8969

View File

@ -859,6 +859,10 @@ void Player::SyncOtherFriend()
for (auto& pair : friend_hash_) {
Player* hum = PlayerMgr::Instance()->GetPlayerByAccountId(pair.second->base_data.account_id);
if (hum) {
Friend* friend_data = hum->GetFriendById(AccountId());
if (friend_data) {
*friend_data = myself;
}
hum->SendMsg(msg);
}
}