From ab2f28cfa2995dffeaf95a3a160654eee363c593 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 Jul 2011 00:53:09 +0300 Subject: Fix error in inventoryhandler from previous commits. --- src/net/ea/inventoryhandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/net') 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) { -- cgit v1.2.3-70-g09d2