diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 4365f2c19..e62dd5133 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 1db10ba5f..c72b6e980 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8801" + #define REVISION_NR "8802" #endif // __REVISION_NR_H__