summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-19 00:51:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-19 00:51:19 +0300
commit29a93440367af32463f285ae5f0bd2aa23aadc92 (patch)
treef04bcf2f82649a5eb6b729399c49d431959d032c /src/being/playerinfo.cpp
parent495b746d928f28ce3e13ff95f26e8cddff2fb06e (diff)
downloadplus-29a93440367af32463f285ae5f0bd2aa23aadc92.tar.gz
plus-29a93440367af32463f285ae5f0bd2aa23aadc92.tar.bz2
plus-29a93440367af32463f285ae5f0bd2aa23aadc92.tar.xz
plus-29a93440367af32463f285ae5f0bd2aa23aadc92.zip
Move itemtype into separate file.
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r--src/being/playerinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index b4824599b..4978bd494 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -203,8 +203,8 @@ void setInventoryItem(const int index, const int id,
const int amount, const int refine)
{
bool equipment = false;
- const ItemType itemType = ItemDB::get(id).getType();
- if (itemType != ITEM_UNUSABLE && itemType != ITEM_USABLE)
+ const ItemType::Type itemType = ItemDB::get(id).getType();
+ if (itemType != ItemType::UNUSABLE && itemType != ItemType::USABLE)
equipment = true;
if (mInventory)
mInventory->setItem(index, id, amount, refine, equipment);