This commit is contained in:
aozhiwei 2023-04-08 13:24:40 +08:00
parent cd50e0b2e2
commit 2f53ba2619
3 changed files with 5 additions and 0 deletions

View File

@ -470,6 +470,7 @@ void BattleDataContext::ParseResult(a8::XObject& obj)
}
}
}
parse_ok = hero_ability_->hero_meta != nullptr;
}
void BattleDataContext::GetHeroLvQuality(long long& hero_uniid, int& hero_lv, int& quality)

View File

@ -22,6 +22,7 @@ struct BattleDataContext
std::string payload;
int errcode = 0;
std::string errmsg;
bool parse_ok = false;
std::shared_ptr<a8::XObject> hero_dto;
std::shared_ptr<a8::XObject> weapon_dto1;

View File

@ -176,6 +176,9 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
RoomMgr::Instance()->JoinErrorHandle(msg, 2, socket_handle);
return;
}
if (!results.at(0)->parse_ok) {
return;
}
int game_times = 0;
RoomType_e self_room_type = GetHumanRoomType(msg, game_times);
if (self_room_type < RT_OldBrid1) {