summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-09 21:18:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-09 21:18:02 +0300
commit847ad4c18e4355cac45102f5ad8f8bbf4e43f84f (patch)
treeb0bb7b58b195fa043c634f9359b231fb20f43d90
parent3c7d5a6bfcb8ceaa07f9344ccaf1d1e9d17f4653 (diff)
downloadmanaverse-847ad4c18e4355cac45102f5ad8f8bbf4e43f84f.tar.gz
manaverse-847ad4c18e4355cac45102f5ad8f8bbf4e43f84f.tar.bz2
manaverse-847ad4c18e4355cac45102f5ad8f8bbf4e43f84f.tar.xz
manaverse-847ad4c18e4355cac45102f5ad8f8bbf4e43f84f.zip
Fix compilation with some options.
-rw-r--r--src/net/eathena/inventoryrecv.cpp4
1 files changed, 2 insertions, 2 deletions
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<DeleteItemReasonT>(
+ msg.readInt16("reason"));
const int index = msg.readInt16("index") - INVENTORY_OFFSET;
const int amount = msg.readInt16("amount");