From 6d9dbf93e6c0247cb9b19d3f52a1837a5833b22d Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 26 Aug 2010 16:55:05 +0200 Subject: Merged testing branch into master. --- src/playerinfo.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/playerinfo.cpp') diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp index cebd15dc..beb3942e 100644 --- a/src/playerinfo.cpp +++ b/src/playerinfo.cpp @@ -186,11 +186,7 @@ void clearInventory() void setInventoryItem(int index, int id, int amount) { - bool equipment = false; - int itemType = ItemDB::get(id).getType(); - if (itemType != ITEM_UNUSABLE && itemType != ITEM_USABLE) - equipment = true; - mInventory->setItem(index, id, amount, equipment); + mInventory->setItem(index, id, amount); } Equipment *getEquipment() -- cgit v1.2.3-70-g09d2