[11561] Add missing byte (unknown) to SMSG_LOOT_MONEY_NOTIFY

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-05-29 11:53:52 +02:00
parent 598c843548
commit 539e77b08f
2 changed files with 6 additions and 4 deletions

View file

@ -254,10 +254,12 @@ void WorldSession::HandleLootMoneyOpcode( WorldPacket & /*recv_data*/ )
{ {
(*i)->ModifyMoney( money_per_player ); (*i)->ModifyMoney( money_per_player );
(*i)->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY, money_per_player); (*i)->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY, money_per_player);
//Offset surely incorrect, but works
WorldPacket data( SMSG_LOOT_MONEY_NOTIFY, 4 ); WorldPacket data(SMSG_LOOT_MONEY_NOTIFY, 4+1);
data << uint32(money_per_player); data << uint32(money_per_player);
(*i)->GetSession()->SendPacket( &data ); data << uint8(0); // unknown
(*i)->GetSession()->SendPacket(&data);
} }
} }
else else

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 "11560" #define REVISION_NR "11561"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__