summaryrefslogtreecommitdiff
path: root/src/net/tmwa/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-07 23:51:57 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-07 23:51:57 +0300
commitcf09603b18f0158653723251445960d3bd534ea8 (patch)
treee615e3ffce56027851c4e1e69307eedbbf3d75a0 /src/net/tmwa/inventoryhandler.cpp
parent725c8a943ca6ce33a6abefe08003d619de312ddc (diff)
downloadplus-cf09603b18f0158653723251445960d3bd534ea8.tar.gz
plus-cf09603b18f0158653723251445960d3bd534ea8.tar.bz2
plus-cf09603b18f0158653723251445960d3bd534ea8.tar.xz
plus-cf09603b18f0158653723251445960d3bd534ea8.zip
Fix missing initialisations.
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r--src/net/tmwa/inventoryhandler.cpp4
1 files changed, 2 insertions, 2 deletions
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)
{