Fix more warnings.

--HG--
branch : trunk
This commit is contained in:
Spp
2010-05-01 22:25:14 +02:00
parent dd9485993b
commit e107730ffb
22 changed files with 61 additions and 64 deletions
+3 -3
View File
@@ -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;