summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-20 20:05:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-20 20:05:12 +0300
commitb3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82 (patch)
tree3071b6aec1de4df41f9159e7b27d9d1f42d5ba28 /src/net/tmwa/beinghandler.cpp
parentd50ef0a41191beb164e9dddc87f6ffadea5b5cc8 (diff)
downloadmv-b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82.tar.gz
mv-b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82.tar.bz2
mv-b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82.tar.xz
mv-b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82.zip
Fix compilation warnings.
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index f5ebfd2f7..28c91fd28 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -483,13 +483,7 @@ void BeingHandler::processPlayerUpdate1(Net::MessageIn &msg)
const uint16_t headMid = msg.readInt16("head mid");
const uint8_t hairColor = msg.readUInt8("hair color");
msg.readUInt8("unused");
-
- uint8_t colors[9];
- colors[0] = msg.readUInt8("color 0");
- colors[1] = msg.readUInt8("color 1");
- colors[2] = msg.readUInt8("color 2");
-
- msg.readUInt8("unused");
+ msg.readInt32("unused");
const int guild = msg.readInt32("guild");
@@ -623,13 +617,7 @@ void BeingHandler::processPlayerUpdate2(Net::MessageIn &msg)
const uint16_t headMid = msg.readInt16("head mid");
const uint8_t hairColor = msg.readUInt8("hair color");
msg.readUInt8("unused");
-
- uint8_t colors[9];
- colors[0] = msg.readUInt8("color 0");
- colors[1] = msg.readUInt8("color 1");
- colors[2] = msg.readUInt8("color 2");
-
- msg.readUInt8("unused");
+ msg.readInt32("unused");
const int guild = msg.readInt32("guild");
@@ -763,13 +751,7 @@ void BeingHandler::processPlayerMove(Net::MessageIn &msg)
const uint16_t headMid = msg.readInt16("head mid");
const uint8_t hairColor = msg.readUInt8("hair color");
msg.readUInt8("unused");
-
- uint8_t colors[9];
- colors[0] = msg.readUInt8("color 0");
- colors[1] = msg.readUInt8("color 1");
- colors[2] = msg.readUInt8("color 2");
-
- msg.readUInt8("unused");
+ msg.readInt32("unused");
const int guild = msg.readInt32("guild");