summaryrefslogtreecommitdiff
path: root/src/gui/windows/selldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/selldialog.cpp')
-rw-r--r--src/gui/windows/selldialog.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/windows/selldialog.cpp b/src/gui/windows/selldialog.cpp
index cd8c03bdc..32ee2e827 100644
--- a/src/gui/windows/selldialog.cpp
+++ b/src/gui/windows/selldialog.cpp
@@ -245,19 +245,7 @@ void SellDialog::action(const ActionEvent &event)
else if ((eventId == "presell" || eventId == "sell" || eventId == "yes")
&& mAmountItems > 0 && mAmountItems <= mMaxItems)
{
- if (mNpcId != -1)
- {
- sellAction(event);
- }
- else
- {
- ShopItem *const item = mShopItems->at(selectedItem);
- buySellHandler->sendSellRequest(mNick,
- item, mAmountItems);
-
- if (tradeWindow)
- tradeWindow->addAutoItem(mNick, item, mAmountItems);
- }
+ sellAction(event);
}
}