From 847ad4c18e4355cac45102f5ad8f8bbf4e43f84f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 9 Sep 2015 21:18:02 +0300 Subject: Fix compilation with some options. --- src/net/eathena/inventoryrecv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index 8cd1d6496..15fe86a2a 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -379,8 +379,8 @@ void InventoryRecv::processPlayerInventoryRemove2(Net::MessageIn &msg) Inventory *const inventory = localPlayer ? PlayerInfo::getInventory() : nullptr; - const DeleteItemReasonT reason = fromInt(msg.readInt16("reason"), - DeleteItemReasonT); + const DeleteItemReasonT reason = static_cast( + msg.readInt16("reason")); const int index = msg.readInt16("index") - INVENTORY_OFFSET; const int amount = msg.readInt16("amount"); -- cgit v1.2.3-60-g2f50