diff options
author | Paul Gilbert | 2015-03-14 11:41:27 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-14 11:41:27 -0400 |
commit | d47197f1fac36082783c6236552fe64415349a94 (patch) | |
tree | fed53170d991b8bb672a009386291bfdb030f699 /engines/mads/user_interface.cpp | |
parent | ff29535074c630987a99f2ac8bab9600ca2da645 (diff) | |
download | scummvm-rg350-d47197f1fac36082783c6236552fe64415349a94.tar.gz scummvm-rg350-d47197f1fac36082783c6236552fe64415349a94.tar.bz2 scummvm-rg350-d47197f1fac36082783c6236552fe64415349a94.zip |
MADS: Fix original bug re-adding disabled hotspots to scene as active
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r-- | engines/mads/user_interface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp index bcd409889e..0363ae5ef9 100644 --- a/engines/mads/user_interface.cpp +++ b/engines/mads/user_interface.cpp @@ -732,7 +732,9 @@ void UserInterface::loadElements() { _categoryIndexes[CAT_HOTSPOT - 1] = _vm->_game->_screenObjects.size() + 1; for (int hotspotIdx = scene._hotspots.size() - 1; hotspotIdx >= 0; --hotspotIdx) { Hotspot &hs = scene._hotspots[hotspotIdx]; - _vm->_game->_screenObjects.add(hs._bounds, SCREENMODE_VGA, CAT_HOTSPOT, hotspotIdx); + ScreenObject *so = _vm->_game->_screenObjects.add(hs._bounds, SCREENMODE_VGA, + CAT_HOTSPOT, hotspotIdx); + so->_active = hs._active; } } |