aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-10 20:10:55 -0400
committerPaul Gilbert2015-03-10 20:10:55 -0400
commit98f77a66519bdf8f8004e1f78ed1822246919b58 (patch)
tree77d0301ca7dc69e80f8b4c24148ff295ebd1b7f7 /engines
parentb03d46ceeb2c8969fa496298a6bfc8c49b6994f7 (diff)
downloadscummvm-rg350-98f77a66519bdf8f8004e1f78ed1822246919b58.tar.gz
scummvm-rg350-98f77a66519bdf8f8004e1f78ed1822246919b58.tar.bz2
scummvm-rg350-98f77a66519bdf8f8004e1f78ed1822246919b58.zip
MADS: Fix timer module hotspot remaining active after taking it
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/screen.cpp b/engines/mads/screen.cpp
index 6199da5925..5076bbb099 100644
--- a/engines/mads/screen.cpp
+++ b/engines/mads/screen.cpp
@@ -538,7 +538,7 @@ void ScreenObjects::elementHighlighted() {
}
void ScreenObjects::setActive(ScrCategory category, int descId, bool active) {
- for (uint idx = 1; idx < size(); ++idx) {
+ for (uint idx = 1; idx <= size(); ++idx) {
ScreenObject &sObj = (*this)[idx];
if (sObj._category == category && sObj._descId == descId)
sObj._active = active;