Core/Spells: fix crash when loading custom spell attr with invalid spellid
This commit is contained in:
1 parent
2df3fe3a00
commit
11b48569c8
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user