[9172] Fixed unreaded packet tail spam at group inviting.

This commit is contained in:
VladimirMangos 2010-01-14 07:58:46 +03:00
parent 12096177e2
commit cd1c1942e3
2 changed files with 5 additions and 2 deletions

View file

@ -54,6 +54,7 @@ void WorldSession::HandleGroupInviteOpcode( WorldPacket & recv_data )
{ {
std::string membername; std::string membername;
recv_data >> membername; recv_data >> membername;
recv_data.read_skip<uint32>(); // 0 for all known invite ways
// attempt add selected player // attempt add selected player
@ -157,8 +158,10 @@ void WorldSession::HandleGroupInviteOpcode( WorldPacket & recv_data )
SendPartyResult(PARTY_OP_INVITE, membername, PARTY_RESULT_OK); SendPartyResult(PARTY_OP_INVITE, membername, PARTY_RESULT_OK);
} }
void WorldSession::HandleGroupAcceptOpcode( WorldPacket & /*recv_data*/ ) void WorldSession::HandleGroupAcceptOpcode( WorldPacket & recv_data )
{ {
recv_data.read_skip<uint32>(); // value received in WorldSession::HandleGroupInviteOpcode and also skipeed currently?
Group *group = GetPlayer()->GetGroupInvite(); Group *group = GetPlayer()->GetGroupInvite();
if (!group) return; if (!group) return;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9171" #define REVISION_NR "9172"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__