diff options
author | killerwife <killerwife@gmail.com> | 2018-07-20 17:10:57 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-10-15 00:16:13 +0200 |
commit | ca37b98fb80f3b431b6e95e88e16f579b429ac1b (patch) | |
tree | 04ba025f16d311f87492b7b8a3af5e31ced3a0fc /src | |
parent | 839d30e93bb5e865bea1d04ff8d2b2ccf2c2a964 (diff) |
Core/PacketIO: Fixed SMSG_GUILD_BANK_LIST packet payload for enchantments and sockets (#22177)
Credit for reversing goes to Laizerox
(cherry picked from commit 330d85bd6362cd3f66dbea72389102449484f8a7)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Guilds/Guild.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp index b170400c5d5..39c3c47f7d0 100644 --- a/src/server/game/Guilds/Guild.cpp +++ b/src/server/game/Guilds/Guild.cpp @@ -3357,8 +3357,9 @@ void Guild::_SendBankContentUpdate(uint8 tabId, SlotIds slots) const itemInfo.Slot = int32(*itr); itemInfo.Item.ItemID = int32(tabItem ? tabItem->GetEntry() : 0); itemInfo.Count = int32(tabItem ? tabItem->GetCount() : 0); + itemInfo.EnchantmentID = int32(tabItem ? tabItem->GetEnchantmentId(PERM_ENCHANTMENT_SLOT) : 0); itemInfo.Charges = int32(tabItem ? abs(tabItem->GetSpellCharges()) : 0); - itemInfo.OnUseEnchantmentID = 0/*int32(tabItem->GetItemSuffixFactor())*/; + itemInfo.OnUseEnchantmentID = int32(tabItem ? tabItem->GetEnchantmentId(USE_ENCHANTMENT_SLOT) : 0); itemInfo.Flags = 0; itemInfo.Locked = false; |