diff options
| author | n0n4m3 <none@none> | 2009-12-17 11:18:07 +0100 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2009-12-17 11:18:07 +0100 |
| commit | 360edd11df3911567000d5e150f3ede22af112f5 (patch) | |
| tree | b06a0244a2f24b2a5322e8f61437cae8f9fb6706 /src/game/Item.cpp | |
| parent | 085bc555d73ebc1e28304c4dbfdb9542bb78f21e (diff) | |
Update InstanceSaveMgr for new instance system
--HG--
branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
| -rw-r--r-- | src/game/Item.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index f26106cb452..05c1adec795 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -751,15 +751,15 @@ uint32 Item::GetEnchantRequiredLevel() const for (uint32 enchant_slot = PERM_ENCHANTMENT_SLOT; enchant_slot < MAX_ENCHANTMENT_SLOT; ++enchant_slot) if (uint32 enchant_id = GetEnchantmentId(EnchantmentSlot(enchant_slot))) if (SpellItemEnchantmentEntry const* enchantEntry = sSpellItemEnchantmentStore.LookupEntry(enchant_id)) - if (enchantEntry->RequiredLevel > level) - level = enchantEntry->RequiredLevel; + if (enchantEntry->requiredLevel > level) + level = enchantEntry->requiredLevel; return level; } bool Item::IsBoundByEnchant() const { // Check all enchants for soulbound - for (uint32 enchant_slot = PERM_ENCHANTMENT_SLOT; enchant_slot < MAX_ENCHANTMENT_SLOT; ++enchant_slot) + for (uint32 enchant_slot = PERM_ENCHANTMENT_SLOT; enchant_slot < MAX_ENCHANTMENT_SLOT; ++enchant_slot) if (uint32 enchant_id = GetEnchantmentId(EnchantmentSlot(enchant_slot))) if (SpellItemEnchantmentEntry const* enchantEntry = sSpellItemEnchantmentStore.LookupEntry(enchant_id)) if (enchantEntry->slot & ENCHANTMENT_CAN_SOULBOUND) |
