summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 343eb2d15..c010f4b0f 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -88,7 +88,10 @@ void InventoryHandler::equipItem(const Item *const item) const
item->getInvIndex() + INVENTORY_OFFSET), "index");
// here we set flag for any slots,
// probably better set to slot from item properties
- outMsg.writeInt32(0xFFFFFFFFU, "wear location");
+ if (packetVersion >= 20130320)
+ outMsg.writeInt32(0xFFFFFFFFU, "wear location");
+ else
+ outMsg.writeInt16(0x7FFFU, "wear location");
}
void InventoryHandler::unequipItem(const Item *const item) const