diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-20 17:18:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-20 17:18:10 +0300 |
commit | d7f5bf6c2ad9fdcf2308b1c9d3a70e0f17b30adf (patch) | |
tree | 83f74801c0d950fb2e78ed583b8f71c74f8b1e9a /src/net/eathena | |
parent | b2c6603542af1d5c34a3e252d9454ddf0b21fcc5 (diff) | |
download | mv-d7f5bf6c2ad9fdcf2308b1c9d3a70e0f17b30adf.tar.gz mv-d7f5bf6c2ad9fdcf2308b1c9d3a70e0f17b30adf.tar.bz2 mv-d7f5bf6c2ad9fdcf2308b1c9d3a70e0f17b30adf.tar.xz mv-d7f5bf6c2ad9fdcf2308b1c9d3a70e0f17b30adf.zip |
Show card name in insert card dialog.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 48fdb67b8..61d081434 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -833,9 +833,13 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg) void InventoryHandler::processPlayerUseCard(Net::MessageIn &msg) { + const Inventory *const inv = PlayerInfo::getInventory(); + const int index = inventoryHandler->getItemIndex(); + const Item *item1 = nullptr; + if (inv) + item1 = inv->getItem(index); SellDialog *const dialog = CREATEWIDGETR(InsertCardDialog, - inventoryHandler->getItemIndex()); - Inventory *const inv = PlayerInfo::getInventory(); + index, item1); const int count = (msg.readInt16("len") - 4) / 2; for (int f = 0; f < count; f ++) |