From 983277ae4a5c80cc7066f5e608d7301c3a323530 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 28 Jan 2021 16:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dprepare=5Fitems?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/roommgr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index d901f24..1d24033 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -162,9 +162,9 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg) ); hum->meta = MetaMgr::Instance()->human_meta; hum->room = room; + room->AddPlayer(hum); hum->ProcPrepareItems(msg.prepare_items()); hum->ProcPrepareItems2(msg.prepare_items2()); - room->AddPlayer(hum); PlayerMgr::Instance()->IncAccountNum(msg.account_id()); if (JsonDataMgr::Instance()->channel != 0 && JsonDataMgr::Instance()->channel != channel) {