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/inventory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inventory.cpp') 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(mSize)) -- cgit v1.2.3-60-g2f50