summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/inventoryrecv.cpp')
-rw-r--r--src/net/eathena/inventoryrecv.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index 08cd1975e..7b6368dad 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -219,6 +219,7 @@ void InventoryRecv::processPlayerInventoryAdd(Net::MessageIn &msg)
const uint8_t identified = msg.readUInt8("identified");
const uint8_t damaged = msg.readUInt8("is damaged");
const uint8_t refine = msg.readUInt8("refine");
+ Favorite favorite = Favorite_false;
int cards[maxCards];
for (int f = 0; f < maxCards; f++)
cards[f] = msg.readUInt16("card");
@@ -246,6 +247,11 @@ void InventoryRecv::processPlayerInventoryAdd(Net::MessageIn &msg)
options->add(idx, val);
}
}
+ if (msg.getVersion() >= 20160921)
+ {
+ favorite = fromBool(msg.readUInt8("favorite"), Favorite);
+ msg.readInt16("look");
+ }
const ItemColor color = ItemColorManager::getColorFromCards(&cards[0]);
BeingId floorId;
@@ -344,7 +350,7 @@ void InventoryRecv::processPlayerInventoryAdd(Net::MessageIn &msg)
color,
fromBool(identified, Identified),
fromBool(damaged, Damaged),
- Favorite_false,
+ favorite,
fromBool(equipType, Equipm),
Equipped_false);
inventory->setCards(index, cards, 4);