mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8801"
|
||||
#define REVISION_NR "8802"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue