mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8802] check spellexistance at playercreateinfo_spells loading
This commit is contained in:
parent
da2cceb9da
commit
cdd9fe7290
2 changed files with 9 additions and 2 deletions
|
|
@ -2495,8 +2495,15 @@ void ObjectMgr::LoadPlayerInfo()
|
|||
continue;
|
||||
}
|
||||
|
||||
uint32 spell_id = fields[2].GetUInt32();
|
||||
if (!sSpellStore.LookupEntry(spell_id))
|
||||
{
|
||||
sLog.outErrorDb("Non existing spell %u in `playercreateinfo_spell` table, ignoring.", spell_id);
|
||||
continue;
|
||||
}
|
||||
|
||||
PlayerInfo* pInfo = &playerInfo[current_race][current_class];
|
||||
pInfo->spell.push_back(fields[2].GetUInt32());
|
||||
pInfo->spell.push_back(spell_id);
|
||||
|
||||
bar.step();
|
||||
++count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue