From 9dcf6f579a70736fc2027ea8c0c6d63baa8bbe5a Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 30 Mar 2009 16:45:24 -0600 Subject: Fix an offset bug when selling items --- src/gui/sell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2