summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-31 00:53:09 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-31 00:53:09 +0300
commitab2f28cfa2995dffeaf95a3a160654eee363c593 (patch)
treefd1a9b79a0d62b796fdd1094e86727e5468e8c9b /src/net/ea
parenta92b5477c30f6c8de99fa4edb18af1593024dd8b (diff)
downloadplus-ab2f28cfa2995dffeaf95a3a160654eee363c593.tar.gz
plus-ab2f28cfa2995dffeaf95a3a160654eee363c593.tar.bz2
plus-ab2f28cfa2995dffeaf95a3a160654eee363c593.tar.xz
plus-ab2f28cfa2995dffeaf95a3a160654eee363c593.zip
Fix error in inventoryhandler from previous commits.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/inventoryhandler.cpp3
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)
{