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/markethandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/eathena/markethandler.cpp') diff --git a/src/net/eathena/markethandler.cpp b/src/net/eathena/markethandler.cpp index 15370d91c..2aeaf6787 100644 --- a/src/net/eathena/markethandler.cpp +++ b/src/net/eathena/markethandler.cpp @@ -106,7 +106,7 @@ void MarketHandler::buyItems(const std::vector &items) const item->increaseQuantity(usedQuantity); item->increaseUsedQuantity(-usedQuantity); item->update(); - const ItemTypeT type = fromInt(item->getType(), ItemTypeT); + const ItemTypeT type = item->getType(); if (type == ItemType::Weapon || type == ItemType::Armor || type == ItemType::PetEgg || -- cgit v1.2.3-60-g2f50