diff options
author | Eugene Sandulenko | 2013-08-23 00:01:58 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:51:17 +0300 |
commit | 739c24cdd10a329a729a185ca25bed6acc05dfef (patch) | |
tree | 0589953fc4c561794d244c8cb06379ad97900489 /engines/fullpipe/inventory.cpp | |
parent | ebaf5f6b4d36e9009014ffdd9286b153f611def1 (diff) | |
download | scummvm-rg350-739c24cdd10a329a729a185ca25bed6acc05dfef.tar.gz scummvm-rg350-739c24cdd10a329a729a185ca25bed6acc05dfef.tar.bz2 scummvm-rg350-739c24cdd10a329a729a185ca25bed6acc05dfef.zip |
FULLPIPE: Implement CInventory2::addItem()
Diffstat (limited to 'engines/fullpipe/inventory.cpp')
-rw-r--r-- | engines/fullpipe/inventory.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp index c7e1fbcf70..36ee7129ab 100644 --- a/engines/fullpipe/inventory.cpp +++ b/engines/fullpipe/inventory.cpp @@ -96,8 +96,9 @@ bool CInventory2::loadPartial(MfcArchive &file) { // CInventory2_SerializePartia return true; } -void CInventory2::addItem(int itemId, int value) { - warning("STUB: CInventory2::addItem(%d, %d)", itemId, value); +void CInventory2::addItem(int itemId, int count) { + if (getInventoryPoolItemIndexById(itemId) >= 0) + _inventoryItems.push_back(new InventoryItem(itemId, count)); } void CInventory2::rebuildItemRects() { |