summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-30 00:11:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-30 00:11:35 +0300
commit1b653c7c1a3e6c5d7b2739f881ea6b11ca46cd3b (patch)
treede98074d774b203053c4215a49764837a3b007ed /src/inventory.h
parent598de45a1e77e5f10c69694f607941336163673f (diff)
downloadmv-1b653c7c1a3e6c5d7b2739f881ea6b11ca46cd3b.tar.gz
mv-1b653c7c1a3e6c5d7b2739f881ea6b11ca46cd3b.tar.bz2
mv-1b653c7c1a3e6c5d7b2739f881ea6b11ca46cd3b.tar.xz
mv-1b653c7c1a3e6c5d7b2739f881ea6b11ca46cd3b.zip
Allow add item by drag&drop into npc inventory to exact position.
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inventory.h b/src/inventory.h
index e20010c23..1d1f49ebe 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -174,7 +174,8 @@ class Inventory final
int findIndexByTag(const int tag) const;
- void addVirtualItem(const Item *const item);
+ void addVirtualItem(const Item *const item,
+ int index);
protected:
typedef std::list<InventoryListener*> InventoryListenerList;