From 539e77b08f1d78b83edf90fe61fe0efc99ff82e6 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Sun, 29 May 2011 11:53:52 +0200 Subject: [PATCH] [11561] Add missing byte (unknown) to SMSG_LOOT_MONEY_NOTIFY Signed-off-by: NoFantasy --- src/game/LootHandler.cpp | 8 +++++--- src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/game/LootHandler.cpp b/src/game/LootHandler.cpp index fd702952b..3aeb4f1db 100644 --- a/src/game/LootHandler.cpp +++ b/src/game/LootHandler.cpp @@ -254,10 +254,12 @@ void WorldSession::HandleLootMoneyOpcode( WorldPacket & /*recv_data*/ ) { (*i)->ModifyMoney( 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); - (*i)->GetSession()->SendPacket( &data ); + data << uint8(0); // unknown + + (*i)->GetSession()->SendPacket(&data); } } else diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 9b4417cd5..69008bb55 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11560" + #define REVISION_NR "11561" #endif // __REVISION_NR_H__