[8039] Prevent including talents to trainer data, report at server loading. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user