From e9f0a994bd1d5d5bd9bea3975fb47e39096c1bad Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 8 Jul 2024 20:13:23 +0800 Subject: [PATCH] 1 --- server/gameserver/custom_battle.h | 2 +- server/gameserver/roommgr.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/custom_battle.h b/server/gameserver/custom_battle.h index 6c3cab9a..8e6355a4 100644 --- a/server/gameserver/custom_battle.h +++ b/server/gameserver/custom_battle.h @@ -20,7 +20,7 @@ class CustomBattle : public std::enable_shared_from_this Room* GetRoom() { return room_; } void SetRoom(Room* room) { room_ = room; } const std::string& GetRoomId() { return room_id_; } - const std::string& GetRoomUuid() { return room_uuid_; } + const std::string& GetMatchRoomUuid() { return room_uuid_; } const std::string& GetSign() { return sign_; } const std::shared_ptr& GetRawData() { return raw_data_; } int GetZoneId() { return zone_id_; } diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index 18831075..a5cca8f1 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -655,7 +655,7 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr 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; + RoomMgr::Instance()->custom_room_hash_[custom_battle->GetMatchRoomUuid()] = custom_battle; } else { cb(1, "", custom_battle); }