Fix typo/crash on server startup Thanks Zakamurite

Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
Salja 2012-08-06 09:59:15 +02:00 committed by Antz
parent 936404c101
commit d8a2700179

View file

@ -2551,7 +2551,7 @@ void ObjectMgr::LoadItemRequiredTarget()
for (int j = 0; j < MAX_EFFECT_INDEX; ++j)
{
SpellEffectEntry const* spellEffect = pSpellInfo->GetSpellEffect(SpellEffectIndex(j));
if(!pSpellInfo)
if(!spellEffect)
continue;
if (spellEffect->EffectImplicitTargetA == TARGET_CHAIN_DAMAGE ||