diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-03 15:54:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-03 15:54:23 +0300 |
commit | cd636f7e367cfb7fa2c348d00071301a480d62c3 (patch) | |
tree | 2ed2f2565362aec0b02a1de0f4bdc5d6f6c3bc6e /src/inventory.h | |
parent | b86f75e0faf7d646d5414cb6a6893bbb07131315 (diff) | |
download | manaverse-cd636f7e367cfb7fa2c348d00071301a480d62c3.tar.gz manaverse-cd636f7e367cfb7fa2c348d00071301a480d62c3.tar.bz2 manaverse-cd636f7e367cfb7fa2c348d00071301a480d62c3.tar.xz manaverse-cd636f7e367cfb7fa2c348d00071301a480d62c3.zip |
Fix removing items from npc inventory (restore amount in player 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 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; |