summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-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)
{