summaryrefslogtreecommitdiff
path: root/src/net/eathena/itemhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-03 20:55:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:56 +0300
commite5b06e892186483d97de0f8778813153dd156df7 (patch)
treed659803d92db1703db260f58a88d2baea19ad1f5 /src/net/eathena/itemhandler.cpp
parent5a90cfe600073fbae6d097080ee88fd41cdcbeb7 (diff)
downloadmv-e5b06e892186483d97de0f8778813153dd156df7.tar.gz
mv-e5b06e892186483d97de0f8778813153dd156df7.tar.bz2
mv-e5b06e892186483d97de0f8778813153dd156df7.tar.xz
mv-e5b06e892186483d97de0f8778813153dd156df7.zip
eathena: fix packet SMSG_ITEM_DROPPED 0x084b.
Diffstat (limited to 'src/net/eathena/itemhandler.cpp')
-rw-r--r--src/net/eathena/itemhandler.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/net/eathena/itemhandler.cpp b/src/net/eathena/itemhandler.cpp
index ba55fa381..f37bb6f09 100644
--- a/src/net/eathena/itemhandler.cpp
+++ b/src/net/eathena/itemhandler.cpp
@@ -68,14 +68,15 @@ void ItemHandler::handleMessage(Net::MessageIn &msg)
void ItemHandler::processItemDropped(Net::MessageIn &msg)
{
- const int id = msg.readInt32();
- const int itemId = msg.readInt16();
- const uint8_t identify = msg.readUInt8(); // identify flag
- const int x = msg.readInt16();
- const int y = msg.readInt16();
- const int subX = static_cast<int>(msg.readInt8());
- const int subY = static_cast<int>(msg.readInt8());
- const int amount = msg.readInt16();
+ const int id = msg.readInt32("id");
+ const int itemId = msg.readInt16("item id");
+ msg.readInt16("type");
+ const uint8_t identify = msg.readUInt8("identify");
+ const int x = msg.readInt16("x");
+ const int y = msg.readInt16("y");
+ const int subX = static_cast<int>(msg.readInt8("subx"));
+ const int subY = static_cast<int>(msg.readInt8("suby"));
+ const int amount = msg.readInt16("count");
if (actorManager)
{