aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-16 10:22:58 +0800
committermegamage <none@none>2009-07-16 10:22:58 +0800
commit11c26a969fe2bf6b2b24c3499a87906c7c605fd8 (patch)
treee3a7723156d8d97e85054f9df307cb1c408065a0
parent3f39ae98757e4f7d44865a35faf34e336649befd (diff)
[8174] Fixed typo in IsSpellHaveAura
* Correct cast DBC data to AuraType instead of SpellEffect. Signed-off-by: ApoC <apoc@nymfe.net> --HG-- branch : trunk
-rw-r--r--src/game/SpellMgr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h
index 2dde39abba9..fe5da3cda55 100644
--- a/src/game/SpellMgr.h
+++ b/src/game/SpellMgr.h
@@ -196,7 +196,7 @@ inline bool IsSpellHaveEffect(SpellEntry const *spellInfo, SpellEffects effect)
inline bool IsSpellHaveAura(SpellEntry const *spellInfo, AuraType aura)
{
for(int i= 0; i < 3; ++i)
- if(SpellEffects(spellInfo->EffectApplyAuraName[i])==aura)
+ if(AuraType(spellInfo->EffectApplyAuraName[i])==aura)
return true;
return false;
}