[Scummvm-cvs-logs] scummvm master -> 531923241d26febbe2ec81db778baa1e0cf7d7f2
Strangerke
Strangerke at scummvm.org
Sat Mar 15 10:54:27 CET 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
531923241d AVALANCHE: Add a safeguard to avoid trying to highlight a dummy (out of bound) line
Commit: 531923241d26febbe2ec81db778baa1e0cf7d7f2
https://github.com/scummvm/scummvm/commit/531923241d26febbe2ec81db778baa1e0cf7d7f2
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-03-15T10:52:32+01:00
Commit Message:
AVALANCHE: Add a safeguard to avoid trying to highlight a dummy (out of bound) line
Changed paths:
engines/avalanche/help.cpp
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index 8584bfa..9b077eb 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);
}
More information about the Scummvm-git-logs
mailing list