mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7297] Fixed profession spells sorting in trainer spell list at client.
This commit is contained in:
parent
6793f9256f
commit
595d1477da
2 changed files with 4 additions and 4 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue