[8153] Fixed some implicit float->int cast warnings. Author: NetSky

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-12 17:54:53 +08:00
parent b5d802b70c
commit 920a70932b

View File

@@ -6846,7 +6846,8 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl
}
// Add armor bonus from ArmorDamageModifier if > 0
if (proto->ArmorDamageModifier > 0)
armor+=proto->ArmorDamageModifier;
armor += uint32(proto->ArmorDamageModifier);
if (armor)
HandleStatModifier(UNIT_MOD_ARMOR, BASE_VALUE, float(armor), apply);