diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-19 00:51:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-19 00:51:19 +0300 |
commit | 29a93440367af32463f285ae5f0bd2aa23aadc92 (patch) | |
tree | f04bcf2f82649a5eb6b729399c49d431959d032c /src/being | |
parent | 495b746d928f28ce3e13ff95f26e8cddff2fb06e (diff) | |
download | mv-29a93440367af32463f285ae5f0bd2aa23aadc92.tar.gz mv-29a93440367af32463f285ae5f0bd2aa23aadc92.tar.bz2 mv-29a93440367af32463f285ae5f0bd2aa23aadc92.tar.xz mv-29a93440367af32463f285ae5f0bd2aa23aadc92.zip |
Move itemtype into separate file.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/playerinfo.cpp | 4 |
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); |