summaryrefslogtreecommitdiff
path: root/src/gui/shop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r--src/gui/shop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp
index a7a9e358..4cdfd9f4 100644
--- a/src/gui/shop.cpp
+++ b/src/gui/shop.cpp
@@ -68,7 +68,7 @@ void add_buy_item(short id, int price) {
}
void add_sell_item(short index, int price) {
- int id = inventoryDialog->items[index].id;
+ int id = inventoryWindow->items[index].id;
ITEM_SHOP *item_shop = (ITEM_SHOP *)malloc(sizeof(ITEM_SHOP));
if (id >= 501 && id <= 511)
sprintf(item_shop->name, "%s %i gp", item_db[id-501], price);
@@ -77,7 +77,7 @@ void add_sell_item(short index, int price) {
item_shop->price = price;
item_shop->index = index;
item_shop->id = id;
- item_shop->quantity = inventoryDialog->items[index].quantity;
+ item_shop->quantity = inventoryWindow->items[index].quantity;
item_shop->next = NULL;
if (shop == NULL)
shop = item_shop;