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.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/gui/windows/selldialog.cpp b/src/gui/windows/selldialog.cpp
index 32ee2e827..4d4c4d8df 100644
--- a/src/gui/windows/selldialog.cpp
+++ b/src/gui/windows/selldialog.cpp
@@ -55,36 +55,15 @@
SellDialog::DialogList SellDialog::instances;
-SellDialog::SellDialog(const int npcId) :
+SellDialog::SellDialog() :
// TRANSLATORS: sell dialog name
Window(_("Sell"), false, nullptr, "sell.xml"),
ActionListener(),
SelectionListener(),
- mNick(""),
- mNpcId(npcId),
mPlayerMoney(0),
mMaxItems(0),
mAmountItems(0)
{
- init();
-}
-
-SellDialog::SellDialog(const std::string &nick) :
- // TRANSLATORS: sell dialog name
- Window(_("Sell"), false, nullptr, "sell.xml"),
- ActionListener(),
- SelectionListener(),
- mNick(nick),
- mNpcId(-1),
- mPlayerMoney(0),
- mMaxItems(0),
- mAmountItems(0)
-{
- init();
-}
-
-void SellDialog::init()
-{
setWindowName("Sell");
setResizable(true);
setCloseButton(true);