aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/inventory.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2009-09-30 07:47:58 +0000
committerNicola Mettifogo2009-09-30 07:47:58 +0000
commiteb5beef6a1f5a76735b35fb17796420ba2e6d080 (patch)
treeec471a2627565c4772b9b4220f60ed5febf7d90f /engines/parallaction/inventory.cpp
parente660f31ed896e487dba5783619840cc065cc1bc5 (diff)
downloadscummvm-rg350-eb5beef6a1f5a76735b35fb17796420ba2e6d080.tar.gz
scummvm-rg350-eb5beef6a1f5a76735b35fb17796420ba2e6d080.tar.bz2
scummvm-rg350-eb5beef6a1f5a76735b35fb17796420ba2e6d080.zip
* Added secondary inventories for BRA.
* Added comments where code must be added/updated to support multiple inventories. svn-id: r44476
Diffstat (limited to 'engines/parallaction/inventory.cpp')
-rw-r--r--engines/parallaction/inventory.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/parallaction/inventory.cpp b/engines/parallaction/inventory.cpp
index 5283fe23fb..2b9e63c9fa 100644
--- a/engines/parallaction/inventory.cpp
+++ b/engines/parallaction/inventory.cpp
@@ -356,6 +356,10 @@ void Parallaction_br::initInventory() {
_inventoryRenderer = new InventoryRenderer(this, &_invProps_BR);
assert(_inventoryRenderer);
_inventoryRenderer->bindInventory(_inventory);
+
+ _charInventories[0] = new Inventory(_invProps_BR._maxItems, _verbs_BR);
+ _charInventories[1] = new Inventory(_invProps_BR._maxItems, _verbs_BR);
+ _charInventories[2] = new Inventory(_invProps_BR._maxItems, _verbs_BR);
}
void Parallaction_ns::destroyInventory() {
@@ -370,6 +374,13 @@ void Parallaction_br::destroyInventory() {
delete _inventory;
_inventory = 0;
_inventoryRenderer = 0;
+
+ delete _charInventories[0];
+ delete _charInventories[1];
+ delete _charInventories[2];
+ _charInventories[0] = 0;
+ _charInventories[1] = 0;
+ _charInventories[2] = 0;
}