*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
This commit is contained in:
QAston
2009-07-31 17:24:11 +02:00
parent 0fdd7cd5de
commit 91d7f59cf7

View File

@@ -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*/)