summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-23 04:15:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-23 04:15:07 +0300
commitd10950aba8576a48314f05632935c38f99066591 (patch)
treeab2cf621f26a1019d1b9a0c946bf026a8b33d273 /src/gui/windows
parentf9dece33c858e7e8eee2b65c1ca0f920677fdce3 (diff)
downloadplus-d10950aba8576a48314f05632935c38f99066591.tar.gz
plus-d10950aba8576a48314f05632935c38f99066591.tar.bz2
plus-d10950aba8576a48314f05632935c38f99066591.tar.xz
plus-d10950aba8576a48314f05632935c38f99066591.zip
Remove default parameter from tradewindow.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/itemamountwindow.cpp2
-rw-r--r--src/gui/windows/tradewindow.cpp2
-rw-r--r--src/gui/windows/tradewindow.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 100ad748a..41916c514 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -74,7 +74,7 @@ void ItemAmountWindow::finish(Item *const item,
{
case ItemAmountWindowUsage::TradeAdd:
if (tradeWindow != nullptr)
- tradeWindow->tradeItem(item, amount);
+ tradeWindow->tradeItem(item, amount, false);
break;
case ItemAmountWindowUsage::ItemDrop:
PlayerInfo::dropItem(item, amount, Sfx_true);
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index be67e2432..d6b39e8f1 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -497,7 +497,7 @@ void TradeWindow::initTrade(const std::string &nick)
const Item *const item = inv->findItem(mAutoAddItem->getId(),
mAutoAddItem->getColor());
if (item != nullptr)
- tradeItem(item, mAutoAddAmount);
+ tradeItem(item, mAutoAddAmount, false);
}
}
if (mAutoMoney != 0)
diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h
index 6cfc89a3f..21461d9e7 100644
--- a/src/gui/windows/tradewindow.h
+++ b/src/gui/windows/tradewindow.h
@@ -129,7 +129,7 @@ class TradeWindow final : public Window,
*/
void tradeItem(const Item *const item,
const int quantity,
- const bool check = false) const;
+ const bool check) const;
/**
* Updates the labels and makes sure only one item is selected in