mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +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];
|
TrainerSpellData& data = m_mCacheTrainerSpellMap[entry];
|
||||||
|
|
||||||
if(SpellMgr::IsProfessionSpell(spell))
|
|
||||||
data.trainerType = 2;
|
|
||||||
|
|
||||||
TrainerSpell& trainerSpell = data.spellList[spell];
|
TrainerSpell& trainerSpell = data.spellList[spell];
|
||||||
trainerSpell.spell = spell;
|
trainerSpell.spell = spell;
|
||||||
trainerSpell.spellCost = fields[2].GetUInt32();
|
trainerSpell.spellCost = fields[2].GetUInt32();
|
||||||
|
|
@ -6975,6 +6972,9 @@ void ObjectMgr::LoadTrainerSpell()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(SpellMgr::IsProfessionSpell(trainerSpell.learnedSpell))
|
||||||
|
data.trainerType = 2;
|
||||||
|
|
||||||
++count;
|
++count;
|
||||||
|
|
||||||
} while (result->NextRow());
|
} while (result->NextRow());
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7296"
|
#define REVISION_NR "7297"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue