aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-18 17:48:03 -0500
committermegamage <none@none>2009-05-18 17:48:03 -0500
commitba727af7964d07d5b58c7946c3f08aaee2d76537 (patch)
treee414e885a59f7ac552df65b498c471e4150d64ea /src
parent483714d845919f7d9f5eec344d5ad4dc6c66c2ba (diff)
*Fix a crash caused by a typo in SetCantProc. Thanks to Drahy. Do not use rev between 3392 and 3404.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/game/SpellAuras.h b/src/game/SpellAuras.h
index 254d297a9f1..a1efaf2febd 100644
--- a/src/game/SpellAuras.h
+++ b/src/game/SpellAuras.h
@@ -107,8 +107,18 @@ class TRINITY_DLL_SPEC Aura
bool IsRemoved() const { return m_isRemoved; }
void SetUpdated(bool val) { m_updated = val; }
- bool CanProc(){return !m_procDeep;}
- void SetCantProc( bool apply) {if (apply) --m_procDeep; else ++m_procDeep; assert(m_procDeep>=0);}
+ bool CanProc() const { return !m_procDeep; }
+ void SetCantProc(bool apply)
+ {
+ if(apply)
+ ++m_procDeep;
+ else
+ {
+ assert(m_procDeep);
+ --m_procDeep;
+ }
+ }
+
bool IsPersistent() const;
bool IsAreaAura() const;
bool IsAuraType(AuraType type) const;