[7297] Fixed profession spells sorting in trainer spell list at client. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-18 16:51:59 -06:00
parent 8c7daebae9
commit 104d87ca3b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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());
+1 -1
View File
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7296"
#define REVISION_NR "7297"
#endif // __REVISION_NR_H__