diff options
Diffstat (limited to 'engines/titanic/pet_control/pet_inventory.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_inventory.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_inventory.cpp b/engines/titanic/pet_control/pet_inventory.cpp index 89eb692a7e..f143e24ecb 100644 --- a/engines/titanic/pet_control/pet_inventory.cpp +++ b/engines/titanic/pet_control/pet_inventory.cpp @@ -22,6 +22,7 @@ #include "titanic/pet_control/pet_inventory.h" #include "titanic/pet_control/pet_control.h" +#include "titanic/carry/carry.h" #include "titanic/titanic.h" namespace Titanic { @@ -121,9 +122,15 @@ void CPetInventory::fn3(CCarry *item) { void CPetInventory::itemsChanged() { _items.clear(); - //CGameObject *item = static_cast<CGameObject *>(_petControl->getFirstObject()); - + CGameObject *item = _petControl->getFirstObject(); + while (item) { + CPetInventoryGlyph *glyph = new CPetInventoryGlyph(); + glyph->setOwner(_petControl, &_items); + glyph->setItem(item, _field290); + _items.push_back(glyph); + item = _petControl->getNextObject(item); + } } void CPetInventory::couldntShowInventory(CCarry *item) { |