Skip to content

Commit

Permalink
[7297] Fixed profession spells sorting in trainer spell list at client.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Feb 18, 2009
1 parent 4d4bb00 commit 461d0a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/game/ObjectMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6949,9 +6949,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();
Expand All @@ -6975,6 +6972,9 @@ void ObjectMgr::LoadTrainerSpell()
}
}

if(SpellMgr::IsProfessionSpell(trainerSpell.learnedSpell))
data.trainerType = 2;

++count;

} while (result->NextRow());
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7296"
#define REVISION_NR "7297"
#endif // __REVISION_NR_H__

0 comments on commit 461d0a0

Please sign in to comment.