Fix Custom Enchant load
--HG-- branch : trunk
This commit is contained in:
@@ -1842,6 +1842,7 @@ void SpellMgr::LoadSpellLearnSkills()
|
|||||||
dbc_node.value = dbc_node.step * 75;
|
dbc_node.value = dbc_node.step * 75;
|
||||||
dbc_node.maxvalue = dbc_node.step * 75;
|
dbc_node.maxvalue = dbc_node.step * 75;
|
||||||
|
|
||||||
|
// FIXME: db_node not used... remove it?
|
||||||
SpellLearnSkillNode const* db_node = GetSpellLearnSkill(spell);
|
SpellLearnSkillNode const* db_node = GetSpellLearnSkill(spell);
|
||||||
|
|
||||||
mSpellLearnSkills[spell] = dbc_node;
|
mSpellLearnSkills[spell] = dbc_node;
|
||||||
@@ -3919,7 +3920,7 @@ void SpellMgr::LoadEnchantCustomAttr()
|
|||||||
{
|
{
|
||||||
uint32 enchId = spellInfo->EffectMiscValue[j];
|
uint32 enchId = spellInfo->EffectMiscValue[j];
|
||||||
SpellItemEnchantmentEntry const *ench = sSpellItemEnchantmentStore.LookupEntry(enchId);
|
SpellItemEnchantmentEntry const *ench = sSpellItemEnchantmentStore.LookupEntry(enchId);
|
||||||
if (!enchId)
|
if (!ench)
|
||||||
continue;
|
continue;
|
||||||
mEnchantCustomAttr[enchId] = true;
|
mEnchantCustomAttr[enchId] = true;
|
||||||
count++;
|
count++;
|
||||||
|
|||||||
Reference in New Issue
Block a user