From 1b653c7c1a3e6c5d7b2739f881ea6b11ca46cd3b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Oct 2015 00:11:35 +0300 Subject: Allow add item by drag&drop into npc inventory to exact position. --- src/gui/widgets/itemcontainer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/itemcontainer.cpp') diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 8fc8b09e4..fec14b814 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -631,8 +631,9 @@ void ItemContainer::mouseReleased(MouseEvent &event) inventory = PlayerInfo::getInventory(); if (inventory) { - mInventory->addVirtualItem(inventory->getItem( - dragDrop.getTag())); + mInventory->addVirtualItem( + inventory->getItem(dragDrop.getTag()), + getSlotIndex(event.getX(), event.getY())); } return; } -- cgit v1.2.3-70-g09d2