This commit is contained in:
aozhiwei 2023-12-01 17:36:44 +08:00
parent e761d94482
commit d1a1bd8da6

View File

@ -1127,6 +1127,7 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
custom_battle->ParseResult(*rsp_obj);
if (custom_battle->GetParseOk()) {
cb(0, "", custom_battle);
RoomMgr::Instance()->custom_room_hash_[custom_battle->GetRoomUuid()] = custom_battle;
} else {
cb(1, "", custom_battle);
}