aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/dropdown2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/dropdown2.cpp')
-rw-r--r--engines/avalanche/dropdown2.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/avalanche/dropdown2.cpp b/engines/avalanche/dropdown2.cpp
index 74d0a25823..33a2671a8b 100644
--- a/engines/avalanche/dropdown2.cpp
+++ b/engines/avalanche/dropdown2.cpp
@@ -168,9 +168,8 @@ void MenuItem::wipe() {
}
void MenuItem::moveHighlight(int8 inc) {
- int8 highlightNum;
if (inc != 0) {
- highlightNum = _highlightNum + inc;
+ int8 highlightNum = _highlightNum + inc;
if ((highlightNum < 0) || (highlightNum >= _optionNum))
return;
_highlightNum = highlightNum;