Commit f49df74a3a4a1b43f0a7671338733ef05520dcb4

  • avatar
  • Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>
  • Tue Jun 29 22:56:45 CEST 2010
Fixed the sell support under Manaserv.

Made the sell dialog give the idem id, instead of an
internal inventory id when a item is a duplicate.

Reviewed-by: Freeyorp, Strikermdd
Resolves: Manasource-Mantis #101
  
194194 {
195195 // This order is important, item->getCurrentInvIndex() would return
196196 // the inventory index of the next Duplicate otherwise.
197 itemIndex = item->getCurrentInvIndex();
197 item->getCurrentInvIndex();
198198 sellCount = item->sellCurrentDuplicate(mAmountItems);
199 itemIndex = item->getId();
199200 Net::getNpcHandler()->sellItem(mNpcId, itemIndex, sellCount);
200201 mAmountItems -= sellCount;
201202 }