From 51b85e9aebb4f69bac02390c3546e94058fe13c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Mar 2016 00:10:20 +0300 Subject: Fix compilation without C++11 flags. --- src/net/eathena/buyingstorerecv.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/net/eathena/buyingstorerecv.cpp') diff --git a/src/net/eathena/buyingstorerecv.cpp b/src/net/eathena/buyingstorerecv.cpp index 89a756ad3..71396df4c 100644 --- a/src/net/eathena/buyingstorerecv.cpp +++ b/src/net/eathena/buyingstorerecv.cpp @@ -134,9 +134,8 @@ void BuyingStoreRecv::processBuyingStoreItemsList(Net::MessageIn &msg) { const int price = msg.readInt32("price"); const int amount = msg.readInt16("amount"); - const ItemTypeT itemType = fromInt( - msg.readUInt8("item type"), - ItemTypeT); + const ItemTypeT itemType = static_cast( + msg.readUInt8("item type")); const int itemId = msg.readInt16("item id"); if (!inv) -- cgit v1.2.3-70-g09d2