diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-28 11:21:47 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-28 11:21:47 +0000 |
commit | f8a90f4964ad694e1d6166f82b51897629df487c (patch) | |
tree | 53686556cefa059dda6da3cc8315000f3d3c3744 /src/gui/shop.cpp | |
parent | 8063086435d6ce9ec848e9962287cd6c97001ca4 (diff) | |
download | mana-f8a90f4964ad694e1d6166f82b51897629df487c.tar.gz mana-f8a90f4964ad694e1d6166f82b51897629df487c.tar.bz2 mana-f8a90f4964ad694e1d6166f82b51897629df487c.tar.xz mana-f8a90f4964ad694e1d6166f82b51897629df487c.zip |
Inventory dialog is also not a dialog.
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r-- | src/gui/shop.cpp | 4 |
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; |