summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/buydialog.h')
-rw-r--r--src/gui/windows/buydialog.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/buydialog.h b/src/gui/windows/buydialog.h
index 06e169c92..d697eff5d 100644
--- a/src/gui/windows/buydialog.h
+++ b/src/gui/windows/buydialog.h
@@ -30,6 +30,7 @@
class Button;
class DropDown;
+class ShopItem;
class ShopItems;
class ShopListBox;
class SortListModelBuy;
@@ -99,11 +100,11 @@ class BuyDialog final : public Window,
/**
* Adds an item to the shop inventory.
*/
- void addItem(const int id,
- const int type,
- const unsigned char color,
- const int amount,
- const int price);
+ ShopItem *addItem(const int id,
+ const int type,
+ const unsigned char color,
+ const int amount,
+ const int price);
/**
* Called when receiving actions from the widgets.