diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-09 21:18:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-09 21:18:02 +0300 |
commit | 847ad4c18e4355cac45102f5ad8f8bbf4e43f84f (patch) | |
tree | b0bb7b58b195fa043c634f9359b231fb20f43d90 /src/net/eathena/inventoryrecv.cpp | |
parent | 3c7d5a6bfcb8ceaa07f9344ccaf1d1e9d17f4653 (diff) | |
download | manaplus-847ad4c18e4355cac45102f5ad8f8bbf4e43f84f.tar.gz manaplus-847ad4c18e4355cac45102f5ad8f8bbf4e43f84f.tar.bz2 manaplus-847ad4c18e4355cac45102f5ad8f8bbf4e43f84f.tar.xz manaplus-847ad4c18e4355cac45102f5ad8f8bbf4e43f84f.zip |
Fix compilation with some options.
Diffstat (limited to 'src/net/eathena/inventoryrecv.cpp')
-rw-r--r-- | src/net/eathena/inventoryrecv.cpp | 4 |
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"); |