This commit is contained in:
aozhiwei 2024-01-30 16:16:37 +08:00
parent e56ab67d92
commit b67245b731

View File

@ -2604,8 +2604,9 @@ int Room::InitWithMobaBattle(long ip_saddr, int socket_handle, std::shared_ptr<c
if (hum) {
hum->ReJoin(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);
}
}
}