From 91d7f59cf7e9a2aa5fa322147bde7a8964506eb2 Mon Sep 17 00:00:00 2001 From: QAston Date: Fri, 31 Jul 2009 17:24:11 +0200 Subject: *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 --- src/game/SpellEffects.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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*/) -- cgit v1.2.3