diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-12 17:07:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-12 17:07:09 +0300 |
commit | 566ae30ff94caf6c92fc7d64f021b567933f8a60 (patch) | |
tree | eae43b8899444f99a97fdd00bc5df8a117c316e9 /src/net/eathena/playerhandler.cpp | |
parent | 247418a3ec0b50479c7bac80322202b01527ae61 (diff) | |
download | mv-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.gz mv-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.bz2 mv-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.xz mv-566ae30ff94caf6c92fc7d64f021b567933f8a60.zip |
fix code style.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 29aacdd47..c677cd3f8 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -241,10 +241,10 @@ void PlayerHandler::setShortcut(const int idx, const int level) const { MessageOut outMsg(CMSG_SET_SHORTCUTS); - outMsg.writeInt16(idx, "index"); - outMsg.writeInt8(type, "type"); + outMsg.writeInt16(static_cast<int16_t>(idx), "index"); + outMsg.writeInt8(static_cast<int8_t>(type), "type"); outMsg.writeInt32(id, "id"); - outMsg.writeInt16(level, "level"); + outMsg.writeInt16(static_cast<int16_t>(level), "level"); } void PlayerHandler::removeOption() const @@ -255,7 +255,7 @@ void PlayerHandler::removeOption() const void PlayerHandler::changeCart(const int type) const { MessageOut outMsg(CMSG_CHANGE_CART); - outMsg.writeInt16(type, "type"); + outMsg.writeInt16(static_cast<int16_t>(type), "type"); } void PlayerHandler::setMemo() const |