From a9877525597aa94f1d974b8f45567b4168cf6c8e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 20 Oct 2014 18:43:00 +0300 Subject: Remove item default parameters. --- src/inventory.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index 6656f2266..245927ce9 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -104,14 +104,15 @@ Item *Inventory::findItem(const int itemId, const unsigned char color) const } void Inventory::addItem(const int id, const int quantity, const uint8_t refine, - const uint8_t color, const bool equipment) + const uint8_t color, const bool equipment, + const bool equipped) { - setItem(getFreeSlot(), id, quantity, refine, color, equipment); + setItem(getFreeSlot(), id, quantity, refine, color, equipment, equipped); } void Inventory::setItem(const int index, const int id, const int quantity, const uint8_t refine, const unsigned char color, - const bool equipment) + const bool equipment, const bool equipped) { if (index < 0 || index >= static_cast(mSize)) { @@ -122,7 +123,8 @@ void Inventory::setItem(const int index, const int id, const int quantity, Item *const item1 = mItems[index]; if (!item1 && id > 0) { - Item *const item = new Item(id, quantity, refine, color, equipment); + Item *const item = new Item(id, quantity, refine, color, + equipment, equipped); item->setInvIndex(index); mItems[index] = item; mUsed++; -- cgit v1.2.3-70-g09d2