diff options
author | Strangerke | 2014-03-15 10:52:32 +0100 |
---|---|---|
committer | Strangerke | 2014-03-15 10:52:32 +0100 |
commit | 531923241d26febbe2ec81db778baa1e0cf7d7f2 (patch) | |
tree | fa53bce53088d2f9f8ac3940ed09c7c659a5cdc9 | |
parent | a2380c7576964135db3493d828479c0f9ba06e67 (diff) | |
download | scummvm-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
-rw-r--r-- | engines/avalanche/help.cpp | 4 |
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); } |