mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8039] Prevent including talents to trainer data, report at server loading.
This commit is contained in:
parent
0e20fbbd56
commit
23c96493b1
2 changed files with 13 additions and 1 deletions
|
|
@ -7366,6 +7366,8 @@ void ObjectMgr::LoadTrainerSpell()
|
||||||
|
|
||||||
barGoLink bar( result->GetRowCount() );
|
barGoLink bar( result->GetRowCount() );
|
||||||
|
|
||||||
|
std::set<uint32> talentIds;
|
||||||
|
|
||||||
uint32 count = 0;
|
uint32 count = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
@ -7407,6 +7409,16 @@ void ObjectMgr::LoadTrainerSpell()
|
||||||
continue;
|
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];
|
TrainerSpellData& data = m_mCacheTrainerSpellMap[entry];
|
||||||
|
|
||||||
TrainerSpell& trainerSpell = data.spellList[spell];
|
TrainerSpell& trainerSpell = data.spellList[spell];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8038"
|
#define REVISION_NR "8039"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue