diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-30 16:45:24 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-30 16:45:24 -0600 |
commit | 9dcf6f579a70736fc2027ea8c0c6d63baa8bbe5a (patch) | |
tree | 1ba6a2f382f7edea859ecbe84da3e35803c55402 /src | |
parent | 5925b4262ca5d9376d558429eecd6796de5dc2fe (diff) | |
download | mana-9dcf6f579a70736fc2027ea8c0c6d63baa8bbe5a.tar.gz mana-9dcf6f579a70736fc2027ea8c0c6d63baa8bbe5a.tar.bz2 mana-9dcf6f579a70736fc2027ea8c0c6d63baa8bbe5a.tar.xz mana-9dcf6f579a70736fc2027ea8c0c6d63baa8bbe5a.zip |
Fix an offset bug when selling items
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/sell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index 1e1155a7..1057c2e9 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -209,7 +209,7 @@ void SellDialog::action(const gcn::ActionEvent &event) while (mAmountItems > 0) { MessageOut outMsg(CMSG_NPC_SELL_REQUEST); outMsg.writeInt16(8); - outMsg.writeInt16(item->getCurrentInvIndex()); + outMsg.writeInt16(item->getCurrentInvIndex() + 2); // This order is important, item->getCurrentInvIndex() would return // the inventory index of the next Duplicate otherwise. sellCount = item->sellCurrentDuplicate(mAmountItems); |