diff options
Diffstat (limited to 'src/gui/windows/tradewindow.cpp')
-rw-r--r-- | src/gui/windows/tradewindow.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp index 1f4325413..34164758c 100644 --- a/src/gui/windows/tradewindow.cpp +++ b/src/gui/windows/tradewindow.cpp @@ -194,26 +194,38 @@ void TradeWindow::addItem(const int id, const bool own, const int quantity, const uint8_t refine, - const unsigned char color) const + const unsigned char color, + const bool identified) const { if (own) - mMyInventory->addItem(id, quantity, refine, color, false, false); + { + mMyInventory->addItem(id, quantity, refine, color, + identified, false, false); + } else - mPartnerInventory->addItem(id, quantity, refine, color, false, false); + { + mPartnerInventory->addItem(id, quantity, refine, color, + identified, false, false); + } } -void TradeWindow::addItem2(const int id, const bool own, const int quantity, - const uint8_t refine, const unsigned char color, +void TradeWindow::addItem2(const int id, + const bool own, + const int quantity, + const uint8_t refine, + const unsigned char color, + const bool identified, const bool equipment) const { if (own) { - mMyInventory->addItem(id, quantity, refine, color, equipment, false); + mMyInventory->addItem(id, quantity, refine, color, + identified, equipment, false); } else { mPartnerInventory->addItem(id, quantity, refine, color, - equipment, false); + identified, equipment, false); } } |