summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-23 04:04:00 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-23 04:04:00 +0300
commit45a17142524b79254b0b87a8385ee36cbfac79ce (patch)
tree04865c94ae41a9740dc4a52f693cbd830f4c125d /src/net/eathena/inventoryhandler.cpp
parent7e8f6e26d5e2d1c560092cf72bc4f7f98f7fba07 (diff)
downloadmv-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.gz
mv-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.bz2
mv-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.xz
mv-45a17142524b79254b0b87a8385ee36cbfac79ce.zip
Fix code style.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 201cf038f..7d3b36f72 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -221,7 +221,7 @@ void InventoryHandler::selectCart(const BeingId accountId,
{
createOutPacket(CMSG_SELECT_CART);
outMsg.writeBeingId(accountId, "account id");
- outMsg.writeInt8(type, "type");
+ outMsg.writeInt8(CAST_S8(type), "type");
}
void InventoryHandler::identifyItem(const Item *const item) const
@@ -239,7 +239,7 @@ void InventoryHandler::mergeItemsAck(const std::vector<Item*> &items) const
"len");
FOR_EACH (std::vector<Item*>::const_iterator, it, items)
{
- outMsg.writeInt16((*it)->getInvIndex() + 2,
+ outMsg.writeInt16(CAST_S16((*it)->getInvIndex() + 2),
"item index");
}
}