summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/itemamountwindow.cpp3
-rw-r--r--src/gui/windows/tradewindow.cpp4
-rw-r--r--src/gui/windows/tradewindow.h4
3 files changed, 6 insertions, 5 deletions
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;