mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
*Fix a crash.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user