diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-02 08:57:58 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-02 08:59:26 -0600 |
commit | 515a97fe15a81e355e402e32b4978a5c4efa8bb0 (patch) | |
tree | 3125cfcc1d8dd6f71f548ad7942147e508dcc150 /src/net/ea | |
parent | 58d382c73ea18b171ef1d52dee1c456c78754b31 (diff) | |
download | mana-515a97fe15a81e355e402e32b4978a5c4efa8bb0.tar.gz mana-515a97fe15a81e355e402e32b4978a5c4efa8bb0.tar.bz2 mana-515a97fe15a81e355e402e32b4978a5c4efa8bb0.tar.xz mana-515a97fe15a81e355e402e32b4978a5c4efa8bb0.zip |
Fix inventory offset when populating sell dialog
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/buysellhandler.cpp | 2 |
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 |