diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-18 22:13:37 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-18 22:13:37 +0200 |
commit | f4792bc06f21335fc2d1171d937ea7645ca0c253 (patch) | |
tree | c7b11cf81f254f5b9ed2f5dbfe127649abc7545a /src/net/tmwa/tradehandler.cpp | |
parent | f98d003e354a1792117b7cbc771d1dd91475a156 (diff) | |
download | manaplus-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.gz manaplus-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.bz2 manaplus-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.xz manaplus-f4792bc06f21335fc2d1171d937ea7645ca0c253.zip |
Fix most conversions except manaserv net code and some other code.
Diffstat (limited to 'src/net/tmwa/tradehandler.cpp')
-rw-r--r-- | src/net/tmwa/tradehandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tmwa/tradehandler.cpp b/src/net/tmwa/tradehandler.cpp index 581031f23..b7cf70661 100644 --- a/src/net/tmwa/tradehandler.cpp +++ b/src/net/tmwa/tradehandler.cpp @@ -208,7 +208,7 @@ void TradeHandler::handleMessage(Net::MessageIn &msg) else { tradeWindow->addItem2(type, false, amount, refine, - identify, false); + static_cast<unsigned char>(identify), false); } } } @@ -325,7 +325,8 @@ void TradeHandler::addItem(Item *item, int amount) return; MessageOut outMsg(CMSG_TRADE_ITEM_ADD_REQUEST); - outMsg.writeInt16(item->getInvIndex() + INVENTORY_OFFSET); + outMsg.writeInt16(static_cast<Sint16>( + item->getInvIndex() + INVENTORY_OFFSET)); outMsg.writeInt32(amount); } |