summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryhandler.cpp
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2011-08-24 22:42:17 +0200
committerReid <reidyaro@gmail.com>2011-08-24 22:42:17 +0200
commit43c19a8321bd0c4bcf36655d74e895397aff7eea (patch)
treec8f7933367ae1e757a3166a04772274896d58c9c /src/net/ea/inventoryhandler.cpp
parentc1ec2b921389cb5c44d9ae572ea4851891cf8bc9 (diff)
parent9505e3789cc9db6a10a68b9794a586604271b76f (diff)
downloadmv-43c19a8321bd0c4bcf36655d74e895397aff7eea.tar.gz
mv-43c19a8321bd0c4bcf36655d74e895397aff7eea.tar.bz2
mv-43c19a8321bd0c4bcf36655d74e895397aff7eea.tar.xz
mv-43c19a8321bd0c4bcf36655d74e895397aff7eea.zip
Merge branch 'master' of gitorious.org:manaplus/manaplus
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r--src/net/ea/inventoryhandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index acd674d12..01000f8f1 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -24,9 +24,9 @@
#include "inventory.h"
#include "localplayer.h"
-#include "log.h"
+#include "logger.h"
-#include "gui/ministatus.h"
+#include "gui/ministatuswindow.h"
#include "net/messagein.h"
@@ -275,7 +275,7 @@ void InventoryHandler::processPlayerStorageEquip(Net::MessageIn &msg)
void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg)
{
int index, amount, itemId, equipType, refine;
- int cards[4], itemType;
+// int cards[4], itemType;
unsigned char identified;
int floorId;
@@ -296,9 +296,9 @@ void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg)
msg.readInt8(); // attribute
refine = msg.readInt8();
for (int i = 0; i < 4; i++)
- cards[i] = msg.readInt16();
+ msg.readInt16(); // cards[i]
equipType = msg.readInt16();
- itemType = msg.readInt8();
+ msg.readInt8(); // itemType
const ItemInfo &itemInfo = ItemDB::get(itemId);