aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Guilds/Guild.cpp
diff options
context:
space:
mode:
authorGacko <gacko28@gmx.de>2015-03-29 21:56:02 +0200
committerGacko <gacko28@gmx.de>2015-03-29 21:56:22 +0200
commitdb9173488f958161c715c0bb10e5775cd8aa9494 (patch)
tree2fcaddce37eb69a7e79ffc88ebefb07916bf5407 /src/server/game/Guilds/Guild.cpp
parent844efdfebcbc3f646b02f5e3482f11cc263e5b71 (diff)
Fix warnings
Diffstat (limited to 'src/server/game/Guilds/Guild.cpp')
-rw-r--r--src/server/game/Guilds/Guild.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp
index fa7223205d5..6bc7dcf5538 100644
--- a/src/server/game/Guilds/Guild.cpp
+++ b/src/server/game/Guilds/Guild.cpp
@@ -3213,7 +3213,7 @@ void Guild::_SendBankContentUpdate(uint8 tabId, SlotIds slots) const
{
uint32 enchants = 0;
for (uint32 ench = 0; ench < MAX_ENCHANTMENT_SLOT; ++ench)
- if (uint32 enchantId = tabItem->GetEnchantmentId(EnchantmentSlot(ench)))
+ if (tabItem->GetEnchantmentId(EnchantmentSlot(ench)))
++enchants;
itemInfo.SocketEnchant.reserve(enchants);
@@ -3301,7 +3301,7 @@ void Guild::SendBankList(WorldSession* session, uint8 tabId, bool fullUpdate) co
uint32 enchants = 0;
for (uint32 ench = 0; ench < MAX_ENCHANTMENT_SLOT; ++ench)
- if (uint32 enchantId = tabItem->GetEnchantmentId(EnchantmentSlot(ench)))
+ if (tabItem->GetEnchantmentId(EnchantmentSlot(ench)))
++enchants;
itemInfo.SocketEnchant.reserve(enchants);