diff options
author | QAston <none@none> | 2009-03-11 21:51:24 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-03-11 21:51:24 +0100 |
commit | 5808c12f5e9112f565c35a4a1f1ad76b4a9049cd (patch) | |
tree | 0a631be3e704cb2f3382e9deabbe9232896544b0 /src/game/Unit.cpp | |
parent | c3026bc7556c0c9511a043756d35d6b8ec1eb692 (diff) |
*Fix crash.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 58d419de98f..85661e97dbf 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3795,9 +3795,9 @@ bool Unit::AddAura(Aura *Aur) { // prevent adding stack more than once stackModified=true; - Aur->SetStackAmount(i2->second->GetStackAmount()); + Aur->InitStackAmount(i2->second->GetStackAmount()); if(Aur->GetStackAmount() < aurSpellInfo->StackAmount) - Aur->SetStackAmount(Aur->GetStackAmount()+1); + Aur->InitStackAmount(Aur->GetStackAmount()+1); } RemoveAura(i2,AURA_REMOVE_BY_STACK); i2=m_Auras.lower_bound(spair); |