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

This commit is contained in:
VladimirMangos 2009-02-18 21:01:20 +03:00
parent 6793f9256f
commit 595d1477da
2 changed files with 4 additions and 4 deletions

View file

@ -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());