aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Ad/AdInventoryBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Ad/AdInventoryBox.cpp')
-rw-r--r--engines/wintermute/Ad/AdInventoryBox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/Ad/AdInventoryBox.cpp b/engines/wintermute/Ad/AdInventoryBox.cpp
index 9c2d5bbcfc..f7aa67b280 100644
--- a/engines/wintermute/Ad/AdInventoryBox.cpp
+++ b/engines/wintermute/Ad/AdInventoryBox.cpp
@@ -108,7 +108,7 @@ HRESULT CAdInventoryBox::display() {
if (_window) {
_window->EnableWidget("prev", _scrollOffset > 0);
- _window->EnableWidget("next", _scrollOffset + ItemsX * ItemsY < AdGame->_inventoryOwner->GetInventory()->_takenItems.GetSize());
+ _window->EnableWidget("next", _scrollOffset + ItemsX * ItemsY < AdGame->_inventoryOwner->getInventory()->_takenItems.GetSize());
}
@@ -135,8 +135,8 @@ HRESULT CAdInventoryBox::display() {
int xxx = rect.left;
for (int i = 0; i < ItemsX; i++) {
int ItemIndex = _scrollOffset + j * ItemsX + i;
- if (ItemIndex >= 0 && ItemIndex < AdGame->_inventoryOwner->GetInventory()->_takenItems.GetSize()) {
- CAdItem *item = AdGame->_inventoryOwner->GetInventory()->_takenItems[ItemIndex];
+ if (ItemIndex >= 0 && ItemIndex < AdGame->_inventoryOwner->getInventory()->_takenItems.GetSize()) {
+ CAdItem *item = AdGame->_inventoryOwner->getInventory()->_takenItems[ItemIndex];
if (item != ((CAdGame *)Game)->_selectedItem || !_hideSelected) {
item->update();
item->display(xxx, yyy);