Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 461d0a010953b4285d18938a8a967bbddf157bc7 1 parent 4d4bb00
VladimirMangos authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/game/ObjectMgr.cpp
  2. +1 −1  src/shared/revision_nr.h
View
6 src/game/ObjectMgr.cpp
@@ -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();
@@ -6975,6 +6972,9 @@ void ObjectMgr::LoadTrainerSpell()
}
}
+ if(SpellMgr::IsProfessionSpell(trainerSpell.learnedSpell))
+ data.trainerType = 2;
+
++count;
} while (result->NextRow());
View
2  src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "7296"
+ #define REVISION_NR "7297"
#endif // __REVISION_NR_H__
Please sign in to comment.
Something went wrong with that request. Please try again.