From c6997f8ee41d5f85dd8a1269e82982e1ab0b5c74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Nov 2015 21:29:51 +0300 Subject: In personal shops in sell dialog shop no existing items with amount 0 and disabled. Only for legacy servers. --- src/gui/widgets/selldialog.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/selldialog.h') diff --git a/src/gui/widgets/selldialog.h b/src/gui/widgets/selldialog.h index 92008df38..e94619f1f 100644 --- a/src/gui/widgets/selldialog.h +++ b/src/gui/widgets/selldialog.h @@ -34,6 +34,7 @@ class Button; class Item; class Label; class ScrollArea; +class ShopItem; class ShopItems; class ShopListBox; class Slider; @@ -93,11 +94,11 @@ class SellDialog notfinal : public Window, */ void setVisible(Visible visible) override final; - void addItem(const int id, - const int type, - const ItemColor color, - const int amount, - const int price); + ShopItem *addItem(const int id, + const int type, + const ItemColor color, + const int amount, + const int price); /** * Returns true if any instances exist. -- cgit v1.2.3-60-g2f50