summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/settings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index ce2b28f..82de166 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -707,6 +707,8 @@ void set_option(char* string, int* variable, char* options[],
#endif
if ( *variable < (numoptions-1) )
(*variable)++;
+ else
+ (*variable) -= (numoptions-1);
break;
#ifdef HAVE_RECORDER_KEYPAD
@@ -718,6 +720,8 @@ void set_option(char* string, int* variable, char* options[],
#endif
if ( *variable > 0 )
(*variable)--;
+ else
+ (*variable) += (numoptions-1);
break;
#ifdef HAVE_RECORDER_KEYPAD