aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;