diff options
author | megamage <none@none> | 2009-02-18 16:51:59 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-18 16:51:59 -0600 |
commit | 104d87ca3b12eb31eea5618dbeb69816611a59ed (patch) | |
tree | 847da6b0779f69760c5495a792f365828c295e57 /src/game/ObjectMgr.cpp | |
parent | 8c7daebae902fc3b8fcd16113a89ea8d90d913f9 (diff) |
[7297] Fixed profession spells sorting in trainer spell list at client. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index f4b3897eef8..651c710deb2 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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()); |