aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-19 16:59:30 +0200
committerSpp <none@none>2010-04-19 16:59:30 +0200
commitf74e969a069646eca6227bdede974223c07e9c94 (patch)
tree4e38e94f033a56a6ef6b23d83028b7100897efe1 /src
parent2b81449f3eee38bb68a1b5ec0b4b272643683d98 (diff)
Fix Custom Enchant load
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellMgr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 36a5f54eaa2..e02702c210c 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1842,6 +1842,7 @@ void SpellMgr::LoadSpellLearnSkills()
dbc_node.value = dbc_node.step * 75;
dbc_node.maxvalue = dbc_node.step * 75;
+ // FIXME: db_node not used... remove it?
SpellLearnSkillNode const* db_node = GetSpellLearnSkill(spell);
mSpellLearnSkills[spell] = dbc_node;
@@ -3919,7 +3920,7 @@ void SpellMgr::LoadEnchantCustomAttr()
{
uint32 enchId = spellInfo->EffectMiscValue[j];
SpellItemEnchantmentEntry const *ench = sSpellItemEnchantmentStore.LookupEntry(enchId);
- if (!enchId)
+ if (!ench)
continue;
mEnchantCustomAttr[enchId] = true;
count++;