diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-14 23:43:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-14 23:43:54 +0300 |
commit | 15a79eee1b3baa91953daf33dc021a1e7c147365 (patch) | |
tree | 21fc078237a8c635308c1e84e0bba869918ba3d5 /src/inventory.cpp | |
parent | e1841e31c606f1d97ea54c3f00f3380db814f3d2 (diff) | |
download | plus-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.gz plus-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.bz2 plus-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.xz plus-15a79eee1b3baa91953daf33dc021a1e7c147365.zip |
Change refine type to uint8_t.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index a2e890306..4248a9a73 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -103,14 +103,14 @@ Item *Inventory::findItem(const int itemId, const unsigned char color) const return nullptr; } -void Inventory::addItem(const int id, const int quantity, const int refine, - const unsigned char color, const bool equipment) +void Inventory::addItem(const int id, const int quantity, const uint8_t refine, + const uint8_t color, const bool equipment) { setItem(getFreeSlot(), id, quantity, refine, color, equipment); } void Inventory::setItem(const int index, const int id, const int quantity, - const int refine, const unsigned char color, + const uint8_t refine, const unsigned char color, const bool equipment) { if (index < 0 || index >= static_cast<int>(mSize)) |