From 9759a2279ca9a711fcf0ad8c8a79fef0c6d11731 Mon Sep 17 00:00:00 2001 From: ApoC Date: Mon, 13 Jul 2009 15:13:22 +0200 Subject: [PATCH] [8174] Fixed typo in IsSpellHaveAura * Correct cast DBC data to AuraType instead of SpellEffect. Signed-off-by: ApoC --- src/game/SpellMgr.h | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h index 0b3a61f1f..a97515f85 100644 --- a/src/game/SpellMgr.h +++ b/src/game/SpellMgr.h @@ -131,7 +131,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; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2ba2d4656..b7436b725 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8173" + #define REVISION_NR "8174" #endif // __REVISION_NR_H__