diff options
Diffstat (limited to 'src/gui/windows/selldialog.cpp')
-rw-r--r-- | src/gui/windows/selldialog.cpp | 14 |
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); } } |