summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-29 23:56:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-29 23:56:26 +0300
commit598de45a1e77e5f10c69694f607941336163673f (patch)
treeab0082f18939c41c402e90d99fbaa298aa21a3c9 /src/inventory.h
parentb0cddefee60e56525fe4da0404f18af71c14acaf (diff)
downloadplus-598de45a1e77e5f10c69694f607941336163673f.tar.gz
plus-598de45a1e77e5f10c69694f607941336163673f.tar.bz2
plus-598de45a1e77e5f10c69694f607941336163673f.tar.xz
plus-598de45a1e77e5f10c69694f607941336163673f.zip
Dont allow add same item twice into npc inventory.
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 5fe92a84f..e20010c23 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -172,6 +172,10 @@ class Inventory final
void resize(const unsigned int newSize);
+ int findIndexByTag(const int tag) const;
+
+ void addVirtualItem(const Item *const item);
+
protected:
typedef std::list<InventoryListener*> InventoryListenerList;
InventoryListenerList mInventoryListeners;