aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/help.cpp
diff options
context:
space:
mode:
authorStrangerke2014-03-15 10:52:32 +0100
committerStrangerke2014-03-15 10:52:32 +0100
commit531923241d26febbe2ec81db778baa1e0cf7d7f2 (patch)
treefa53bce53088d2f9f8ac3940ed09c7c659a5cdc9 /engines/avalanche/help.cpp
parenta2380c7576964135db3493d828479c0f9ba06e67 (diff)
downloadscummvm-rg350-531923241d26febbe2ec81db778baa1e0cf7d7f2.tar.gz
scummvm-rg350-531923241d26febbe2ec81db778baa1e0cf7d7f2.tar.bz2
scummvm-rg350-531923241d26febbe2ec81db778baa1e0cf7d7f2.zip
AVALANCHE: Add a safeguard to avoid trying to highlight a dummy (out of bound) line
Diffstat (limited to 'engines/avalanche/help.cpp')
-rw-r--r--engines/avalanche/help.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index 8584bfa78c..9b077eb4fb 100644
--- a/engines/avalanche/help.cpp
+++ b/engines/avalanche/help.cpp
@@ -199,8 +199,8 @@ bool Help::handleMouse(const Common::Event &event) {
if (_highlightWas != highlightIs)
_vm->_graphics->helpDrawHighlight(_highlightWas, kColorBlue);
- // Highligt the current one with the proper color:
- if (_buttons[highlightIs]._trigger != Common::KEYCODE_INVALID) {
+ // Highlight the current one with the proper color:
+ if ((highlightIs != 177) && (_buttons[highlightIs]._trigger != Common::KEYCODE_INVALID)) {
_highlightWas = highlightIs;
_vm->_graphics->helpDrawHighlight(highlightIs, highlightColor);
}