summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/buysellhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp
index 56d6a986..69726384 100644
--- a/src/net/ea/buysellhandler.cpp
+++ b/src/net/ea/buysellhandler.cpp
@@ -94,7 +94,7 @@ void BuySellHandler::handleMessage(MessageIn &msg)
for (int k = 0; k < n_items; k++)
{
- int index = msg.readInt16();
+ int index = msg.readInt16() - INVENTORY_OFFSET;
int value = msg.readInt32();
msg.readInt32(); // OCvalue