diff --git a/server/gameserver/pbutils.cc b/server/gameserver/pbutils.cc index 05493ae5..acc51b91 100644 --- a/server/gameserver/pbutils.cc +++ b/server/gameserver/pbutils.cc @@ -2604,8 +2604,9 @@ int Room::InitWithMobaBattle(long ip_saddr, int socket_handle, std::shared_ptrReJoin(ip_saddr, socket_handle, msg, p); } else { - auto m = p->GetObByAccountId(msg->account_id()); - if (m) { + auto hum = p->GetRoom()->GetRoomOb()->GetByAccountId(msg->account_id()); + if (hum) { + hum->ReJoin(ip_saddr, socket_handle, msg, p); } } }