This commit is contained in:
aozhiwei 2020-09-27 14:59:39 +08:00
parent 1aaf093be2
commit 8bed0f7052

View File

@ -673,6 +673,7 @@ void Player::_CMGuildCreate(f8::MsgHdr& hdr, const cs::CMGuildCreate& msg)
Player* hum = PlayerMgr::Instance()->GetPlayerBySocket(msg_context->socket_handle); Player* hum = PlayerMgr::Instance()->GetPlayerBySocket(msg_context->socket_handle);
if (hum && hum->AccountId() == msg_context->account_id) { if (hum && hum->AccountId() == msg_context->account_id) {
hum->UpdateGuildData(msg_context->guild_id, kGuildOwner); hum->UpdateGuildData(msg_context->guild_id, kGuildOwner);
hum->SaveToDB(a8::XParams(), nullptr, nullptr);
cs::SMGuildCreate respmsg; cs::SMGuildCreate respmsg;
hum->SendMsg(respmsg); hum->SendMsg(respmsg);
} }