Core/Spells: fix crash when loading custom spell attr with invalid spellid

This commit is contained in:
joschiwald committed 2014-02-01 19:23:20 +01:00
1 parent 2df3fe3a00
commit 11b48569c8
1 file changed
+1 -1
+1 -1
View File
@@ -2731,7 +2731,7 @@ void SpellMgr::LoadSpellInfoCustomAttributes()
uint32 spellId = fields[0].GetUInt32();
uint32 attributes = fields[1].GetUInt32();
spellInfo = mSpellInfoMap[spellId];
spellInfo = _GetSpellInfo(spellId);
if (!spellInfo)
{
TC_LOG_ERROR("sql.sql", "Table `spell_custom_attr` has wrong spell (entry: %u), ignored.", spellId);