From cf09603b18f0158653723251445960d3bd534ea8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 May 2011 23:51:57 +0300 Subject: Fix missing initialisations. --- src/net/tmwa/inventoryhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index dcbc06e07..3e8e89703 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -200,8 +200,8 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) for (int i = 0; i < 4; i++) cards[i] = msg.readInt16(); - index -= (msg.getId() == SMSG_PLAYER_INVENTORY) ? - INVENTORY_OFFSET : STORAGE_OFFSET; + index -= ((msg.getId() == SMSG_PLAYER_INVENTORY) ? + INVENTORY_OFFSET : STORAGE_OFFSET); if (debugInventory) { -- cgit v1.2.3-70-g09d2