From cd636f7e367cfb7fa2c348d00071301a480d62c3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 3 Nov 2015 15:54:23 +0300 Subject: Fix removing items from npc inventory (restore amount in player 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 995a8ef52..311e6c5f0 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -182,7 +182,11 @@ class Inventory final void virtualRemove(Item *const item, const int amount); + void virtualRestore(const Item *const item, + const int amount); + void restoreVirtuals(); + protected: typedef std::list InventoryListenerList; InventoryListenerList mInventoryListeners; -- cgit v1.2.3-60-g2f50