From b81f22b9ca68675d16fa2263b89d7dd0d179ef45 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Feb 2015 23:26:53 +0300 Subject: Add typed bool type Damaged. --- src/gui/windows/itemamountwindow.cpp | 3 ++- src/gui/windows/tradewindow.cpp | 4 ++-- src/gui/windows/tradewindow.h | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 27c72a683..b144140d2 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -336,7 +336,8 @@ void ItemAmountWindow::action(const ActionEvent &event) mItem = new Item(id, 0, 10000, 0, 1, Identified_True, - false, false, false, false); + Damaged_True, + false, false, false); if (mUsage == ShopBuyAdd) mMax = 10000; diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp index b94584f4f..042c11b74 100644 --- a/src/gui/windows/tradewindow.cpp +++ b/src/gui/windows/tradewindow.cpp @@ -201,7 +201,7 @@ void TradeWindow::addItem(const int id, const uint8_t refine, const unsigned char color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite) const { Inventory *inv = own ? mMyInventory : mPartnerInventory; @@ -218,7 +218,7 @@ void TradeWindow::addItem2(const int id, const uint8_t refine, const unsigned char color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite, const bool equipment) const { diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h index f48002deb..153fb0259 100644 --- a/src/gui/windows/tradewindow.h +++ b/src/gui/windows/tradewindow.h @@ -76,7 +76,7 @@ class TradeWindow final : public Window, const uint8_t refine, const unsigned char color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite) const; /** @@ -96,7 +96,7 @@ class TradeWindow final : public Window, const uint8_t refine, const unsigned char color, const Identified identified, - const bool damaged, + const Damaged damaged, const bool favorite, const bool equipment) const; -- cgit v1.2.3-70-g09d2