[8039] Prevent including talents to trainer data, report at server loading. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-18 17:03:16 -05:00
parent e765469b13
commit 2d7a579dab
+12
View File
@@ -7849,6 +7849,8 @@ void ObjectMgr::LoadTrainerSpell()
barGoLink bar( result->GetRowCount() );
std::set<uint32> talentIds;
uint32 count = 0;
do
{
@@ -7890,6 +7892,16 @@ void ObjectMgr::LoadTrainerSpell()
continue;
}
if(GetTalentSpellCost(spell))
{
if(talentIds.count(spell)==0)
{
sLog.outErrorDb("Table `npc_trainer` has talent as learning spell %u, ignore", spell);
talentIds.insert(spell);
}
continue;
}
TrainerSpellData& data = m_mCacheTrainerSpellMap[entry];
TrainerSpell& trainerSpell = data.spellList[spell];