diff options
author | Machiavelli <none@none> | 2009-08-21 20:07:27 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-08-21 20:07:27 +0200 |
commit | eaeba0b357052718e94bca6942ab2a2531c15790 (patch) | |
tree | e8239b3d64f59360130f3516e9be942c27eca1d4 /src/game/Guild.cpp | |
parent | ae1450031f16f41034e38270fa89cadeff8c9c5f (diff) |
*Fix bug that item in guild bank would display improper spellcharges amount.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Guild.cpp')
-rw-r--r-- | src/game/Guild.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/game/Guild.cpp b/src/game/Guild.cpp index 7efc92c2fe0..6f627c4f986 100644 --- a/src/game/Guild.cpp +++ b/src/game/Guild.cpp @@ -1680,15 +1680,13 @@ void Guild::AppendDisplayGuildBankSlot( WorldPacket& data, GuildBankTab const *t data << uint32(entry); if (entry) { - // random item property id +8 - data << (uint32) pItem->GetItemRandomPropertyId(); + data << (uint32) pItem->GetItemRandomPropertyId(); // random item property id +8 if (pItem->GetItemRandomPropertyId()) - // SuffixFactor +4 - data << (uint32) pItem->GetItemSuffixFactor(); - // +12 // ITEM_FIELD_STACK_COUNT - data << uint32(pItem->GetCount()); + data << (uint32) pItem->GetItemSuffixFactor(); // SuffixFactor +4 + + data << uint32(pItem->GetCount()); // +12 // ITEM_FIELD_STACK_COUNT data << uint32(0); // +16 // Unknown value - data << uint8(0); // unknown 2.4.2 + data << uint8(abs(pItem->GetSpellCharges())); // spell charges if (uint32 Enchant0 = pItem->GetEnchantmentId(PERM_ENCHANTMENT_SLOT)) { data << uint8(1); // number of enchantments (max 3) why max 3? |