aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/screen.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-29 21:53:54 -0400
committerPaul Gilbert2014-04-29 21:53:54 -0400
commitdccc4510e82a7df9c8d3082a7914f6259382df14 (patch)
tree334f4ba79f9c04af638233d73fdf2ead5fb815a3 /engines/mads/screen.cpp
parenta770419abcf109ca45b047f2bb361887632db00c (diff)
downloadscummvm-rg350-dccc4510e82a7df9c8d3082a7914f6259382df14.tar.gz
scummvm-rg350-dccc4510e82a7df9c8d3082a7914f6259382df14.tar.bz2
scummvm-rg350-dccc4510e82a7df9c8d3082a7914f6259382df14.zip
MADS: Fix for highlighting and using dynamic hotspots
Diffstat (limited to 'engines/mads/screen.cpp')
-rw-r--r--engines/mads/screen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mads/screen.cpp b/engines/mads/screen.cpp
index cb914e4f86..ea73d41222 100644
--- a/engines/mads/screen.cpp
+++ b/engines/mads/screen.cpp
@@ -378,7 +378,7 @@ void ScreenObjects::elementHighlighted() {
int index;
int indexEnd = -1;
int var8 = 0;
- //int uiCount;
+ int uiCount;
switch (userInterface._category) {
case CAT_COMMAND:
@@ -445,8 +445,8 @@ void ScreenObjects::elementHighlighted() {
break;
default:
- //uiCount = size() - _uiCount;
- index = scene._hotspots.size();
+ uiCount = size() - _uiCount;
+ index = uiCount + scene._hotspots.size();
indexEnd = index - 1;
varA = 0;
topIndex = 0;