From 598de45a1e77e5f10c69694f607941336163673f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Oct 2015 23:56:26 +0300 Subject: Dont allow add same item twice into npc inventory. --- src/inventory.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/inventory.h') 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 InventoryListenerList; InventoryListenerList mInventoryListeners; -- cgit v1.2.3-70-g09d2