diff options
| author | Paul Gilbert | 2014-03-21 09:27:22 -0400 |
|---|---|---|
| committer | Paul Gilbert | 2014-03-21 09:27:22 -0400 |
| commit | 2b141aaba681a3c7b848010cd58768f55f4434a3 (patch) | |
| tree | ad3421fd6e35798ef5731b567bb8e0a816519ba0 /engines/mads/user_interface.cpp | |
| parent | 79f51c4ebd377ae91ec639ecf935c5fc4b2d2a32 (diff) | |
| download | scummvm-rg350-2b141aaba681a3c7b848010cd58768f55f4434a3.tar.gz scummvm-rg350-2b141aaba681a3c7b848010cd58768f55f4434a3.tar.bz2 scummvm-rg350-2b141aaba681a3c7b848010cd58768f55f4434a3.zip | |
MADS: Fixes for screen objects loading and checking
Diffstat (limited to 'engines/mads/user_interface.cpp')
| -rw-r--r-- | engines/mads/user_interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp index f6be725ac2..baec13318e 100644 --- a/engines/mads/user_interface.cpp +++ b/engines/mads/user_interface.cpp @@ -189,7 +189,6 @@ UserInterface::UserInterface(MADSEngine *vm) : _vm(vm), _dirtyAreas(vm), _invSpritesIndex = -1; _invFrameNumber = 1; _category = CAT_NONE; - _screenObjectsCount = 0; _inventoryTopIndex = 0; _objectY = 0; _selectedInvIndex = -1; @@ -445,6 +444,7 @@ void UserInterface::loadElements() { } if (!_vm->_game->_screenObjects._v832EC || _vm->_game->_screenObjects._v832EC == 2) { + _vm->_game->_screenObjects._hotspotsIndex = _vm->_game->_screenObjects.size(); for (int hotspotIdx = scene._hotspots.size() - 1; hotspotIdx >= 0; --hotspotIdx) { Hotspot &hs = scene._hotspots[hotspotIdx]; _vm->_game->_screenObjects.add(hs._bounds, LAYER_GUI, CAT_HOTSPOT, hotspotIdx); |
