[7297] Fixed profession spells sorting in trainer spell list at client. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -7179,9 +7179,6 @@ void ObjectMgr::LoadTrainerSpell()
|
||||
|
||||
TrainerSpellData& data = m_mCacheTrainerSpellMap[entry];
|
||||
|
||||
if(SpellMgr::IsProfessionSpell(spell))
|
||||
data.trainerType = 2;
|
||||
|
||||
TrainerSpell& trainerSpell = data.spellList[spell];
|
||||
trainerSpell.spell = spell;
|
||||
trainerSpell.spellCost = fields[2].GetUInt32();
|
||||
@@ -7205,6 +7202,9 @@ void ObjectMgr::LoadTrainerSpell()
|
||||
}
|
||||
}
|
||||
|
||||
if(SpellMgr::IsProfessionSpell(trainerSpell.learnedSpell))
|
||||
data.trainerType = 2;
|
||||
|
||||
++count;
|
||||
|
||||
} while (result->NextRow());
|
||||
|
||||
Reference in New Issue
Block a user