diff options
author | QAston <none@none> | 2009-07-31 17:24:11 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-31 17:24:11 +0200 |
commit | 91d7f59cf7e9a2aa5fa322147bde7a8964506eb2 (patch) | |
tree | 03f9bef0d46e835c244134df58b8e285575ec1ac /src | |
parent | 0fdd7cd5ded7e781e4e92edbf7d7d03a7a9bd524 (diff) |
*Tempfix for a crash caused by trying to access db script while out of world. This will probably not fix all related issues - it's safer to use rev 4666 or older. Sorry for this problem, 1:1 merge from MaNGOS will never happen again. Issue is going to be solved with map handling change upcoming soon.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 2dca13cd08a..254cb416cf5 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5501,7 +5501,8 @@ void Spell::EffectScriptEffect(uint32 effIndex) // normal DB scripted effect sLog.outDebug("Spell ScriptStart spellid %u in EffectScriptEffect ", m_spellInfo->Id); - m_caster->GetMap()->ScriptsStart(sSpellScripts, m_spellInfo->Id, m_caster, unitTarget); + if (m_caster->FindMap()) + m_caster->GetMap()->ScriptsStart(sSpellScripts, m_spellInfo->Id, m_caster, unitTarget); } void Spell::EffectSanctuary(uint32 /*i*/) |