[Client] Use correct count for ID_CONTAINER when dropping items

coverity_scan^2
David Cernat 8 years ago
parent d8a9a5f6c9
commit e52823394c

@ -173,7 +173,10 @@ namespace MWGui
mwmp::ContainerItem containerItem;
containerItem.refId = itemPtr.getCellRef().getRefId();
containerItem.count = itemPtr.getRefData().getCount();
// Make sure we get the drag and drop count, not the count of the original item
containerItem.count = mDragAndDrop->mDraggedCount;
containerItem.charge = itemPtr.getCellRef().getCharge();
containerItem.goldValue = itemPtr.getCellRef().getGoldValue();
containerItem.owner = itemPtr.getCellRef().getOwner();

Loading…
Cancel
Save