aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-05-01 22:25:14 +0200
committerSpp <none@none>2010-05-01 22:25:14 +0200
commite107730ffbbe92f2dc98c990478e527030888ff4 (patch)
treeea7e9ddc48bd1277efe0c6b8cfb15b3616151e6e /src/game/SpellMgr.cpp
parentdd9485993b32f08c67bea5a73c46579df19ec0cc (diff)
Fix more warnings.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 127fe2152f8..23910ba1d30 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1135,7 +1135,7 @@ void SpellMgr::LoadSpellTargetPositions()
if (spellInfo->Effect[i]==SPELL_EFFECT_BIND && spellInfo->EffectMiscValue[i])
{
uint32 area_id = MapManager::Instance().GetAreaId(st.target_mapId, st.target_X, st.target_Y, st.target_Z);
- if (area_id != spellInfo->EffectMiscValue[i])
+ if (area_id != uint32(spellInfo->EffectMiscValue[i]))
{
sLog.outErrorDb("Spell (Id: %u) listed in `spell_target_position` expected point to zone %u bit point to zone %u.",Spell_ID, spellInfo->EffectMiscValue[i], area_id);
break;
@@ -2604,7 +2604,7 @@ void SpellMgr::LoadSpellAreas()
continue;
}
- if (abs(spellArea.auraSpell) == spellArea.spellId)
+ if (uint32(abs(spellArea.auraSpell)) == spellArea.spellId)
{
sLog.outErrorDb("Spell %u listed in `spell_area` have aura spell (%u) requirement for itself", spell,abs(spellArea.auraSpell));
continue;
@@ -3949,7 +3949,7 @@ bool SpellMgr::IsSkillTypeSpell(uint32 spellId, SkillType type) const
SkillLineAbilityMapBounds bounds = GetSkillLineAbilityMapBounds(spellId);
for (SkillLineAbilityMap::const_iterator _spell_idx = bounds.first; _spell_idx != bounds.second; ++_spell_idx)
- if (_spell_idx->second->skillId == type)
+ if (_spell_idx->second->skillId == uint32(type))
return true;
return false;