Commit f49df74a3a4a1b43f0a7671338733ef05520dcb4
- Diff rendering mode:
- inline
- side by side
src/gui/sell.cpp
(2 / 1)
|   | |||
| 194 | 194 | { | |
| 195 | 195 | // This order is important, item->getCurrentInvIndex() would return | |
| 196 | 196 | // the inventory index of the next Duplicate otherwise. | |
| 197 | itemIndex = item->getCurrentInvIndex(); | ||
| 197 | item->getCurrentInvIndex(); | ||
| 198 | 198 | sellCount = item->sellCurrentDuplicate(mAmountItems); | |
| 199 | itemIndex = item->getId(); | ||
| 199 | 200 | Net::getNpcHandler()->sellItem(mNpcId, itemIndex, sellCount); | |
| 200 | 201 | mAmountItems -= sellCount; | |
| 201 | 202 | } |

