From ca37b98fb80f3b431b6e95e88e16f579b429ac1b Mon Sep 17 00:00:00 2001 From: killerwife Date: Fri, 20 Jul 2018 17:10:57 +0200 Subject: 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) --- src/server/game/Guilds/Guild.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3