From 267711ca1ff52805a0829436de91c338814db635 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 14 Apr 2017 04:04:05 +0300 Subject: Fix cast issue. --- src/net/eathena/cashshophandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index e5d40dca7..7f3cf6ce8 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -91,7 +91,7 @@ void CashShopHandler::buyItems(const int points, createOutPacket(CMSG_NPC_CASH_SHOP_BUY); outMsg.writeInt16(CAST_S16(10 + pairSize * cnt), "len"); outMsg.writeInt32(points, "points"); - outMsg.writeInt16(cnt, "count"); + outMsg.writeInt16(CAST_S16(cnt), "count"); FOR_EACH (std::vector::const_iterator, it, items) { ShopItem *const item = *it; -- cgit v1.2.3-70-g09d2