diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-29 23:56:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-29 23:56:26 +0300 |
commit | 598de45a1e77e5f10c69694f607941336163673f (patch) | |
tree | ab0082f18939c41c402e90d99fbaa298aa21a3c9 /src/inventory.h | |
parent | b0cddefee60e56525fe4da0404f18af71c14acaf (diff) | |
download | plus-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.h | 4 |
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; |