From 515a97fe15a81e355e402e32b4978a5c4efa8bb0 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 2 Apr 2009 08:57:58 -0600 Subject: Fix inventory offset when populating sell dialog --- src/net/ea/buysellhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/ea/buysellhandler.cpp') 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 -- cgit v1.2.3-70-g09d2