summaryrefslogtreecommitdiff
path: root/src/gui/windows/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-20 18:43:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-20 18:43:00 +0300
commita9877525597aa94f1d974b8f45567b4168cf6c8e (patch)
tree56673d8e770302a2846f1d1db0db1a890bba95cd /src/gui/windows/tradewindow.cpp
parent2ce675592a1a96cc9960082485797045a921676d (diff)
downloadplus-a9877525597aa94f1d974b8f45567b4168cf6c8e.tar.gz
plus-a9877525597aa94f1d974b8f45567b4168cf6c8e.tar.bz2
plus-a9877525597aa94f1d974b8f45567b4168cf6c8e.tar.xz
plus-a9877525597aa94f1d974b8f45567b4168cf6c8e.zip
Remove item default parameters.
Diffstat (limited to 'src/gui/windows/tradewindow.cpp')
-rw-r--r--src/gui/windows/tradewindow.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index a3a6781ef..1f4325413 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -197,9 +197,9 @@ void TradeWindow::addItem(const int id,
const unsigned char color) const
{
if (own)
- mMyInventory->addItem(id, quantity, refine, color);
+ mMyInventory->addItem(id, quantity, refine, color, false, false);
else
- mPartnerInventory->addItem(id, quantity, refine, color);
+ mPartnerInventory->addItem(id, quantity, refine, color, false, false);
}
void TradeWindow::addItem2(const int id, const bool own, const int quantity,
@@ -207,9 +207,14 @@ void TradeWindow::addItem2(const int id, const bool own, const int quantity,
const bool equipment) const
{
if (own)
- mMyInventory->addItem(id, quantity, refine, color, equipment);
+ {
+ mMyInventory->addItem(id, quantity, refine, color, equipment, false);
+ }
else
- mPartnerInventory->addItem(id, quantity, refine, color, equipment);
+ {
+ mPartnerInventory->addItem(id, quantity, refine, color,
+ equipment, false);
+ }
}
void TradeWindow::changeQuantity(const int index, const bool own,