From e621af3b97d66addf5381cdeac7e353c440be6d1 Mon Sep 17 00:00:00 2001 From: zhenya Date: Sun, 5 Sep 2010 00:43:19 +0400 Subject: [PATCH] [10443] Fixed expected packet size for SMSG_SET_PROFICIENCY Signed-off-by: VladimirMangos --- src/game/Player.cpp | 6 +++--- src/game/Player.h | 2 +- src/shared/revision_nr.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 19d749e7b..61e49cb26 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -18049,10 +18049,10 @@ void Player::RemoveSpellMods(Spell const* spell) } // send Proficiency -void Player::SendProficiency(uint8 pr1, uint32 pr2) +void Player::SendProficiency(ItemClass itemClass, uint32 itemSubclassMask) { - WorldPacket data(SMSG_SET_PROFICIENCY, 8); - data << uint8(pr1) << uint32(pr2); + WorldPacket data(SMSG_SET_PROFICIENCY, 1 + 4); + data << uint8(itemClass) << uint32(itemSubclassMask); GetSession()->SendPacket (&data); } diff --git a/src/game/Player.h b/src/game/Player.h index 0b3497085..8d47f7505 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -1644,7 +1644,7 @@ class MANGOS_DLL_SPEC Player : public Unit bool IsNeedCastPassiveSpellAtLearn(SpellEntry const* spellInfo) const; bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex index) const; - void SendProficiency(uint8 pr1, uint32 pr2); + void SendProficiency(ItemClass itemClass, uint32 itemSubclassMask); void SendInitialSpells(); bool addSpell(uint32 spell_id, bool active, bool learning, bool dependent, bool disabled); void learnSpell(uint32 spell_id, bool dependent); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 7f33550e7..11bae70ce 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 "10442" + #define REVISION_NR "10443" #endif // __REVISION_NR_H__