Core/Groups: Properly read CMSG_GROUP_ACCEPT and CMSG_GROUP_INVITE opcodes

--HG--
branch : trunk
This commit is contained in:
Spp
2010-11-26 01:24:31 +01:00
parent cacf75ae60
commit 08b43a1e69
@@ -59,6 +59,7 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recv_data)
{
std::string membername;
recv_data >> membername;
recv_data.read_skip<uint32>();
// attempt add selected player
@@ -188,8 +189,9 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recv_data)
SendPartyResult(PARTY_OP_INVITE, membername, ERR_PARTY_RESULT_OK);
}
void WorldSession::HandleGroupAcceptOpcode(WorldPacket & /*recv_data*/)
void WorldSession::HandleGroupAcceptOpcode(WorldPacket& recv_data)
{
recv_data.read_skip<uint32>();
Group *group = GetPlayer()->GetGroupInvite();
if (!group) return;