From ba727af7964d07d5b58c7946c3f08aaee2d76537 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 18 May 2009 17:48:03 -0500 Subject: *Fix a crash caused by a typo in SetCantProc. Thanks to Drahy. Do not use rev between 3392 and 3404. --HG-- branch : trunk --- src/game/SpellAuras.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3