diff options
author | Eugene Sandulenko | 2014-04-21 09:47:03 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2014-04-21 09:47:03 +0300 |
commit | c73a10606ef342978cd9e7f72d2b2b562524c7cc (patch) | |
tree | 486342e37e485eb5ed2edd19cbf5f019162b8908 /engines/fullpipe/inventory.cpp | |
parent | 3091d0ae7f9ea1a8fc1d1be9bc773c853787fa26 (diff) | |
download | scummvm-rg350-c73a10606ef342978cd9e7f72d2b2b562524c7cc.tar.gz scummvm-rg350-c73a10606ef342978cd9e7f72d2b2b562524c7cc.tar.bz2 scummvm-rg350-c73a10606ef342978cd9e7f72d2b2b562524c7cc.zip |
FULLPIPE: Implement Inventory2::clear()
Diffstat (limited to 'engines/fullpipe/inventory.cpp')
-rw-r--r-- | engines/fullpipe/inventory.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp index cfe8adf86f..e79f9c54df 100644 --- a/engines/fullpipe/inventory.cpp +++ b/engines/fullpipe/inventory.cpp @@ -447,6 +447,15 @@ int Inventory2::getHoveredItem(Common::Point *point) { return 0; } +void Inventory2::clear() { + unselectItem(0); + + for (uint i = 0; i < _inventoryItems.size(); i++) + getInventoryPoolItemFieldCById(_inventoryItems[i]->itemId); + + _inventoryItems.clear(); +} + void FullpipeEngine::getAllInventory() { Inventory2 *inv = getGameLoaderInventory(); |