summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 12:30:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 12:30:17 +0300
commit40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (patch)
tree9410a23feea6c6248612afdc8968a1c04306e5b0 /src/item.cpp
parent76e55447563fae6f8d17f2fd90231c81e0b3f927 (diff)
downloadmv-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.gz
mv-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.bz2
mv-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.xz
mv-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.zip
Add to item field damaged.
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/item.cpp b/src/item.cpp
index da4483874..2d4183a8b 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -42,6 +42,7 @@ Item::Item(const int id,
const uint8_t refine,
const unsigned char color,
const bool identified,
+ const bool damaged,
const bool equipment,
const bool equipped) :
mId(0),
@@ -56,7 +57,7 @@ Item::Item(const int id,
mEquipped(equipped),
mInEquipment(false),
mIdentified(identified),
- mDamaged(false),
+ mDamaged(damaged),
mFavorite(false)
{
setId(id, color);