aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2014-02-01 19:23:20 +0100
committerjoschiwald <joschiwald.trinity@gmail.com>2014-02-01 19:23:20 +0100
commit11b48569c807be6019fb364187ef6ddae74b5ef6 (patch)
treeaec0f51367e612b8989207a0f02f74f946c1709e /src
parent2df3fe3a00499cb08856870d3b57377b78b09fbe (diff)
Core/Spells: fix crash when loading custom spell attr with invalid spellid
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index eccb7863460..93f264d2d61 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -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);