summaryrefslogtreecommitdiff
path: root/src/net/ea
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/net/ea
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/net/ea')
-rw-r--r--src/net/ea/inventoryhandler.cpp1
-rw-r--r--src/net/ea/inventoryitem.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index e43e0de9c..8bf795deb 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -285,6 +285,7 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg)
(*it).color,
(*it).identified,
(*it).damaged,
+ (*it).favorite,
(*it).equip,
false);
}
diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h
index 19d9135f9..c0f5e15a1 100644
--- a/src/net/ea/inventoryitem.h
+++ b/src/net/ea/inventoryitem.h
@@ -47,6 +47,7 @@ class InventoryItem final
unsigned char color;
bool identified;
bool damaged;
+ bool favorite;
bool equip;
InventoryItem(const int slot0,
@@ -56,6 +57,7 @@ class InventoryItem final
const unsigned char color0,
const bool identified0,
const bool damaged0,
+ const bool favorite0,
const bool equip0) :
slot(slot0),
id(id0),
@@ -64,6 +66,7 @@ class InventoryItem final
color(color0),
identified(identified0),
damaged(damaged0),
+ favorite(favorite0),
equip(equip0)
{
}