Fix enchantment application in case item is broken.

--HG--
branch : trunk
This commit is contained in:
krz
2009-05-08 17:16:14 +02:00
parent 5b9dae20b1
commit 51b46c53b8
+2 -2
View File
@@ -6581,8 +6581,8 @@ void Player::_ApplyItemMods(Item *item, uint8 slot,bool apply)
if(slot >= INVENTORY_SLOT_BAG_END || !item)
return;
// not apply/remove mods for broken item
if(item->IsBroken())
// not apply mods for broken item
if(item->IsBroken() && apply)
return;
ItemPrototype const *proto = item->GetProto();