summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/beinghandler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 36c3de56c..7f42306e9 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -246,11 +246,12 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
* 16 bit value will be 0.
*/
- Being *const dstBeing = actorManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(
+ msg.readInt32("accound id"));
if (!dstBeing)
return;
- const uint8_t type = msg.readUInt8();
+ const uint8_t type = msg.readUInt8("type");
int id = 0;
unsigned int id2 = 0U;
const std::string color;
@@ -263,9 +264,9 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
}
else
{ // SMSG_BEING_CHANGE_LOOKS2
- id = msg.readInt16();
+ id = msg.readInt16("id1");
if (type == 2)
- id2 = msg.readInt16();
+ id2 = msg.readInt16("id2");
else
id2 = 1;
// color.clear();