*Fix a crash.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-03-23 15:39:40 +01:00
parent 470d961dfa
commit 8af4e2dd42

View File

@@ -3513,10 +3513,10 @@ void Spell::EffectDispel(uint32 i)
if (GetDispelChance(this, itr->caster, itr->spellId))
{
success_list.push_back(std::pair<uint32,uint64>(itr->spellId,itr->casterGuid));
entry.stackAmount-=1;
if (!itr->stackAmount)
dispel_list.erase(itr);
success_list.push_back(std::pair<uint32,uint64>(itr->spellId,itr->casterGuid));
}
else
fail_list.push_back(itr->spellId);