summaryrefslogtreecommitdiff
path: root/src/gui/widgets/selldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/selldialog.cpp')
-rw-r--r--src/gui/widgets/selldialog.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/widgets/selldialog.cpp b/src/gui/widgets/selldialog.cpp
index 3ad8e5e7e..76cea21f2 100644
--- a/src/gui/widgets/selldialog.cpp
+++ b/src/gui/widgets/selldialog.cpp
@@ -218,18 +218,19 @@ void SellDialog::addItem(const Item *const item, const int price)
mShopItemList->adjustSize();
}
-void SellDialog::addItem(const int id,
- const int type,
- const ItemColor color,
- const int amount,
- const int price)
+ShopItem *SellDialog::addItem(const int id,
+ const int type,
+ const ItemColor color,
+ const int amount,
+ const int price)
{
- mShopItems->addItem(id,
+ ShopItem *const item = mShopItems->addItem(id,
type,
color,
amount,
price);
mShopItemList->adjustSize();
+ return item;
}