diff options
author | QAston <none@none> | 2009-03-10 20:30:43 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-03-10 20:30:43 +0100 |
commit | fdbcfc548d3ba6503c4275fdd603c0986a01ca34 (patch) | |
tree | 60b136ab5c18225ac4eca91472a2d130d4a1789e /src | |
parent | 78407665b7811a99983616f978153c23abd51a4c (diff) |
*Another crashfix.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 1450eed7c93..80d8c0ac0ef 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -4170,11 +4170,8 @@ bool Unit::AddAura(Aura *Aur) { // prevent adding stack more than once stackModified=true; - int32 amount=aurSpellInfo->StackAmount; - if(Player* caster = ((Player*)Aur->GetCaster())) - caster->ApplySpellMod(aurSpellInfo->Id, SPELLMOD_CHARGES, amount, NULL); Aur->SetStackAmount(i2->second->GetStackAmount()); - if(Aur->GetStackAmount() < amount) + if(Aur->GetStackAmount() < aurSpellInfo->StackAmount) Aur->SetStackAmount(Aur->GetStackAmount()+1); } RemoveAura(i2,AURA_REMOVE_BY_STACK); |