*Fix a crash caused by a typo in SetCantProc. Thanks to Drahy. Do not use rev between 3392 and 3404.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-18 17:48:03 -05:00
parent 483714d845
commit ba727af796

View File

@@ -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;