From 566ae30ff94caf6c92fc7d64f021b567933f8a60 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Sep 2014 17:07:09 +0300 Subject: fix code style. --- src/net/eathena/playerhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/eathena/playerhandler.cpp') 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(idx), "index"); + outMsg.writeInt8(static_cast(type), "type"); outMsg.writeInt32(id, "id"); - outMsg.writeInt16(level, "level"); + outMsg.writeInt16(static_cast(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(type), "type"); } void PlayerHandler::setMemo() const -- cgit v1.2.3-70-g09d2