summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-03 15:54:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-03 15:54:23 +0300
commitcd636f7e367cfb7fa2c348d00071301a480d62c3 (patch)
tree2ed2f2565362aec0b02a1de0f4bdc5d6f6c3bc6e /src/inventory.h
parentb86f75e0faf7d646d5414cb6a6893bbb07131315 (diff)
downloadmv-cd636f7e367cfb7fa2c348d00071301a480d62c3.tar.gz
mv-cd636f7e367cfb7fa2c348d00071301a480d62c3.tar.bz2
mv-cd636f7e367cfb7fa2c348d00071301a480d62c3.tar.xz
mv-cd636f7e367cfb7fa2c348d00071301a480d62c3.zip
Fix removing items from npc inventory (restore amount in player 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 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<InventoryListener*> InventoryListenerList;
InventoryListenerList mInventoryListeners;