diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-31 00:53:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-31 00:53:09 +0300 |
commit | ab2f28cfa2995dffeaf95a3a160654eee363c593 (patch) | |
tree | fd1a9b79a0d62b796fdd1094e86727e5468e8c9b | |
parent | a92b5477c30f6c8de99fa4edb18af1593024dd8b (diff) | |
download | mv-ab2f28cfa2995dffeaf95a3a160654eee363c593.tar.gz mv-ab2f28cfa2995dffeaf95a3a160654eee363c593.tar.bz2 mv-ab2f28cfa2995dffeaf95a3a160654eee363c593.tar.xz mv-ab2f28cfa2995dffeaf95a3a160654eee363c593.zip |
Fix error in inventoryhandler from previous commits.
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 1b13b1121..04967b0a7 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -199,8 +199,7 @@ void InventoryHandler::processPlayerInventory(Net::MessageIn &msg, bool playerIn for (int i = 0; i < 4; i++) cards[i] = msg.readInt16(); - index -= ((msg.getId() == playerInvintory) ? - INVENTORY_OFFSET : STORAGE_OFFSET); + index -= (playerInvintory ? INVENTORY_OFFSET : STORAGE_OFFSET); if (mDebugInventory) { |