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

This commit is contained in:
VladimirMangos 2009-06-18 04:12:15 +04:00
parent 0e20fbbd56
commit 23c96493b1
2 changed files with 13 additions and 1 deletions

View file

@ -7366,6 +7366,8 @@ void ObjectMgr::LoadTrainerSpell()
barGoLink bar( result->GetRowCount() );
std::set<uint32> talentIds;
uint32 count = 0;
do
{
@ -7407,6 +7409,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];

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8038"
#define REVISION_NR "8039"
#endif // __REVISION_NR_H__