summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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