summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-02-06 14:37:26 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-02-06 14:37:26 +0000
commit1d6113f5306923c162a5d770ba268103a732e06b (patch)
tree3e285265256592f5af8329855543a17295f4d8f7 /src/gui/sell.cpp
parented0422126771d22e08cf071c735878095a81eef9 (diff)
downloadmana-client-1d6113f5306923c162a5d770ba268103a732e06b.tar.gz
mana-client-1d6113f5306923c162a5d770ba268103a732e06b.tar.bz2
mana-client-1d6113f5306923c162a5d770ba268103a732e06b.tar.xz
mana-client-1d6113f5306923c162a5d770ba268103a732e06b.zip
Completed inventory fix, now selection works
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();