summaryrefslogtreecommitdiff
path: root/src/playerinfo.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-08-26 16:55:05 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-08-26 16:55:05 +0200
commit6d9dbf93e6c0247cb9b19d3f52a1837a5833b22d (patch)
tree4e6e178095ac8cf89dc0dba4f532913891305436 /src/playerinfo.cpp
parentee8f131b49bb9b1d66cac3840b3c566eb49bcf3f (diff)
downloadMana-6d9dbf93e6c0247cb9b19d3f52a1837a5833b22d.tar.gz
Mana-6d9dbf93e6c0247cb9b19d3f52a1837a5833b22d.tar.bz2
Mana-6d9dbf93e6c0247cb9b19d3f52a1837a5833b22d.tar.xz
Mana-6d9dbf93e6c0247cb9b19d3f52a1837a5833b22d.zip
Merged testing branch into master.
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r--src/playerinfo.cpp6
1 files changed, 1 insertions, 5 deletions
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()