aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/user_interface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-14 11:41:27 -0400
committerPaul Gilbert2015-03-14 11:41:27 -0400
commitd47197f1fac36082783c6236552fe64415349a94 (patch)
treefed53170d991b8bb672a009386291bfdb030f699 /engines/mads/user_interface.cpp
parentff29535074c630987a99f2ac8bab9600ca2da645 (diff)
downloadscummvm-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.cpp4
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;
}
}