summaryrefslogtreecommitdiff
path: root/src/gui/windows/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 14:40:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 14:40:14 +0300
commit0875a6ddfda9ece1af4a818e38be1f99e578c59a (patch)
tree7bef19d2a2f41f090be11dfe5a8af88716e7b21c /src/gui/windows/tradewindow.cpp
parent40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (diff)
downloadmv-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.gz
mv-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.bz2
mv-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.xz
mv-0875a6ddfda9ece1af4a818e38be1f99e578c59a.zip
Add to item field favorite.
Diffstat (limited to 'src/gui/windows/tradewindow.cpp')
-rw-r--r--src/gui/windows/tradewindow.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index 0ffbcd34a..6bf091625 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -196,17 +196,18 @@ void TradeWindow::addItem(const int id,
const uint8_t refine,
const unsigned char color,
const bool identified,
- const bool damaged) const
+ const bool damaged,
+ const bool favorite) const
{
if (own)
{
mMyInventory->addItem(id, quantity, refine, color,
- identified, damaged, false, false);
+ identified, damaged, favorite, false, false);
}
else
{
mPartnerInventory->addItem(id, quantity, refine, color,
- identified, damaged, false, false);
+ identified, damaged, favorite, false, false);
}
}
@@ -217,17 +218,18 @@ void TradeWindow::addItem2(const int id,
const unsigned char color,
const bool identified,
const bool damaged,
+ const bool favorite,
const bool equipment) const
{
if (own)
{
mMyInventory->addItem(id, quantity, refine, color,
- identified, damaged, equipment, false);
+ identified, damaged, favorite, equipment, false);
}
else
{
mPartnerInventory->addItem(id, quantity, refine, color,
- identified, damaged, equipment, false);
+ identified, damaged, favorite, equipment, false);
}
}