From 15a79eee1b3baa91953daf33dc021a1e7c147365 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 14 Jul 2014 23:43:54 +0300 Subject: Change refine type to uint8_t. --- src/item.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 0e8b47aef..208be2cc6 100644 --- a/src/item.h +++ b/src/item.h @@ -40,8 +40,10 @@ class Item notfinal /** * Constructor. */ - explicit Item(const int id = -1, const int quantity = 0, - const int refine = 0, const unsigned char color = 1, + explicit Item(const int id = -1, + const int quantity = 0, + const uint8_t refine = 0, + const uint8_t color = 1, const bool equipment = false, const bool equipped = false); @@ -114,13 +116,13 @@ class Item notfinal /** * Sets this item refine level. */ - void setRefine(const int refine) + void setRefine(const uint8_t refine) { mRefine = refine; } /** * Returns this item refine level. */ - int getRefine() const A_WARN_UNUSED + uint8_t getRefine() const A_WARN_UNUSED { return mRefine; } /** @@ -174,7 +176,7 @@ class Item notfinal Image *mImage; /**< Item image. */ std::string mDescription; std::map mTags; - int mRefine; /**< Item refine level. */ + uint8_t mRefine; /**< Item refine level. */ int mInvIndex; /**< Inventory index. */ bool mEquipment; /**< Item is equipment. */ bool mEquipped; /**< Item is equipped. */ -- cgit v1.2.3-70-g09d2