diff options
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); |