summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r--src/gui/sell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index d24daff3..b914d814 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -85,7 +85,7 @@ void SellDialog::reset()
void SellDialog::addItem(short index, int price)
{
- int id = inventoryWindow->items[index].id;
+ int id = inventoryWindow->items->getId(index);
ITEM_SHOP item_shop;
if (id >= 501 && id <= 511) {
@@ -97,7 +97,7 @@ void SellDialog::addItem(short index, int price)
item_shop.price = price;
item_shop.index = index;
item_shop.id = id;
- item_shop.quantity = inventoryWindow->items[index].quantity;
+ item_shop.quantity = inventoryWindow->items->getQuantity(index);
shopInventory.push_back(item_shop);
itemList->adjustSize();