aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-03 11:01:33 -0600
committermegamage <none@none>2009-01-03 11:01:33 -0600
commitb70c57bbd6b69f5dacfc3c5355d8b61ab5762646 (patch)
tree42bac2b454a4664dd6a94dc9520f90e01d3d4fd1 /src/game/Unit.cpp
parent803a834b0d91adafe76e3ecbed9119d19ebe12f3 (diff)
*Mangos [7013] Rename recently added function for consistent with already existed. Use it for old cases. By VladimirMangos.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 694003fbc97..766115742da 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -4012,11 +4012,11 @@ Aura* Unit::GetAura(uint32 spellId, uint32 effindex)
return NULL;
}
-bool Unit::isAuraPresent(uint32 spellId)
+bool Unit::HasAura(uint32 spellId) const
{
- for (int i=0; i<3; ++i)
+ for (int i = 0; i < 3 ; ++i)
{
- AuraMap::iterator iter = m_Auras.find(spellEffectPair(spellId, i));
+ AuraMap::const_iterator iter = m_Auras.find(spellEffectPair(spellId, i));
if (iter != m_Auras.end())
return true;
}