aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/inventory.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-19 19:44:51 -0400
committerPaul Gilbert2014-03-19 19:44:51 -0400
commitdb017b746dded2ea287c04c37fbb88ef82492781 (patch)
treed090cda11d93a9af8f09a8c3cfd290ea50fe2e49 /engines/mads/inventory.cpp
parent66643b3ad6ab2beb3cb42c1b1952aa7ff7cecc02 (diff)
downloadscummvm-rg350-db017b746dded2ea287c04c37fbb88ef82492781.tar.gz
scummvm-rg350-db017b746dded2ea287c04c37fbb88ef82492781.tar.bz2
scummvm-rg350-db017b746dded2ea287c04c37fbb88ef82492781.zip
MADS: Moved ScreenObjects into the Game class
Diffstat (limited to 'engines/mads/inventory.cpp')
-rw-r--r--engines/mads/inventory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mads/inventory.cpp b/engines/mads/inventory.cpp
index b697462cae..1443761ada 100644
--- a/engines/mads/inventory.cpp
+++ b/engines/mads/inventory.cpp
@@ -116,7 +116,7 @@ void InventoryObjects::addToInventory(int objectId) {
(*this)[objectId]._roomNumber = PLAYER_INVENTORY;
- if (_vm->_game->_v1 == 5 && !_vm->_game->_scene._screenObjects._v832EC) {
+ if (_vm->_game->_v1 == 5 && !_vm->_game->_screenObjects._v832EC) {
userInterface.categoryChanged();
userInterface.selectObject(userInterface._selectedInvIndex);
}
@@ -137,7 +137,7 @@ void InventoryObjects::removeFromInventory(int objectId, int newScene) {
int selectedIndex = userInterface._selectedInvIndex;
bool noSelection = selectedIndex < 0;
- if (_vm->_game->_v1 == 5 && !scene._screenObjects._v832EC)
+ if (_vm->_game->_v1 == 5 && !_vm->_game->_screenObjects._v832EC)
userInterface.selectObject(-1);
// Remove the item from the inventory list
@@ -158,7 +158,7 @@ void InventoryObjects::removeFromInventory(int objectId, int newScene) {
newIndex = 0;
}
- if (_vm->_game->_v1 == 5 && !scene._screenObjects._v832EC) {
+ if (_vm->_game->_v1 == 5 && !_vm->_game->_screenObjects._v832EC) {
userInterface.categoryChanged();
userInterface.selectObject(newIndex);
}